Remove pointless call to AssDialogue::SetEntryData in AssFile::CompressForStack; makes pushing files onto the undo stack about 50% faster

Originally committed to SVN as r4564.
This commit is contained in:
Thomas Goyne 2010-06-22 00:03:28 +00:00
parent 5ed401d23d
commit 7958f85ef3

View file

@ -743,13 +743,9 @@ wxString AssFile::GetWildcardList(int mode) {
}
void AssFile::CompressForStack() {
AssDialogue *diag;
for (entryIter cur=Line.begin();cur!=Line.end();cur++) {
diag = dynamic_cast<AssDialogue*>(*cur);
if (diag) {
diag->SetEntryData("");
diag->ClearBlocks();
}
AssDialogue *diag = dynamic_cast<AssDialogue*>(*cur);
if (diag) diag->ClearBlocks();
}
}