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:
parent
5ed401d23d
commit
7958f85ef3
1 changed files with 2 additions and 6 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue