Clean up useless code

This commit is contained in:
Liru Færs
2020-01-17 23:35:55 -05:00
parent 450afff50b
commit 2ffc99aecf
2 changed files with 7 additions and 48 deletions

View File

@@ -63,10 +63,6 @@
////////////////////////////////////////////////////////////////////////////
// LLPreviewLandmark
// static
LLPreviewLandmarkList LLPreviewLandmark::sOrderedInstances;
LLPreviewLandmark::LLPreviewLandmark(const std::string& name,
const LLRect& rect,
const std::string& title,
@@ -112,18 +108,10 @@ LLPreviewLandmark::LLPreviewLandmark(const std::string& name,
translate(rect.mLeft - curRect.mLeft, rect.mTop - curRect.mTop);
}
*/
LLPreviewLandmark::sOrderedInstances.push_back( this );
}
LLPreviewLandmark::~LLPreviewLandmark()
{
LLPreviewLandmarkList::iterator this_itr;
this_itr = std::find(LLPreviewLandmark::sOrderedInstances.begin(),
LLPreviewLandmark::sOrderedInstances.end(), this);
if (this_itr != LLPreviewLandmark::sOrderedInstances.end())
{
LLPreviewLandmark::sOrderedInstances.erase(this_itr);
}
}