diff options
| author | Mark Rowe <mark@vector35.com> | 2025-11-03 16:14:16 -0800 |
|---|---|---|
| committer | Mark Rowe <mark@vector35.com> | 2025-11-05 17:51:19 -0800 |
| commit | 5ee61e3000c366970f170c0fb4428875ee01d49b (patch) | |
| tree | daf189ccfac25f32509d97653d5ee08845a5de8f | |
| parent | 7ac5e43b36e29ed9958512bcd1fc183c98e2c9e1 (diff) | |
[ObjC] Remove unnecesary BeginUndoActions / ForgetUndoActions
The symbol creation code in `ObjCProcessor` was updated to avoid
creating undo actions some time ago, but removing these calls was missed
due to the timing of when the PR that introduced them was merged.
| -rw-r--r-- | objectivec/objc.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/objectivec/objc.cpp b/objectivec/objc.cpp index a30a9ab6..d4476de4 100644 --- a/objectivec/objc.cpp +++ b/objectivec/objc.cpp @@ -1770,10 +1770,8 @@ void ObjCProcessor::ProcessNSConstantArrays() DefineObjCSymbol(DataSymbol, Type::NamedType(m_data, m_typeNames.nsConstantArray), fmt::format("nsarray_{:x}", i), i, true); } - auto id = m_data->BeginUndoActions(); ScopedSymbolQueue::Get().Process(); m_data->EndBulkModifySymbols(); - m_data->ForgetUndoActions(id); } } @@ -1813,10 +1811,8 @@ void ObjCProcessor::ProcessNSConstantDictionaries() DefineObjCSymbol(DataSymbol, Type::NamedType(m_data, m_typeNames.nsConstantDictionary), fmt::format("nsdict_{:x}", i), i, true); } - auto id = m_data->BeginUndoActions(); ScopedSymbolQueue::Get().Process(); m_data->EndBulkModifySymbols(); - m_data->ForgetUndoActions(id); } } @@ -1870,10 +1866,8 @@ void ObjCProcessor::ProcessNSConstantIntegerNumbers() continue; } } - auto id = m_data->BeginUndoActions(); ScopedSymbolQueue::Get().Process(); m_data->EndBulkModifySymbols(); - m_data->ForgetUndoActions(id); } } @@ -1960,10 +1954,8 @@ void ObjCProcessor::ProcessNSConstantFloatingPointNumbers() } DefineObjCSymbol(DataSymbol, Type::NamedType(m_data, *typeName), name, i, true); } - auto id = m_data->BeginUndoActions(); ScopedSymbolQueue::Get().Process(); m_data->EndBulkModifySymbols(); - m_data->ForgetUndoActions(id); } } @@ -1996,10 +1988,8 @@ void ObjCProcessor::ProcessNSConstantDatas() DefineObjCSymbol( DataSymbol, Type::NamedType(m_data, m_typeNames.nsConstantData), fmt::format("nsdata_{:x}", i), i, true); } - auto id = m_data->BeginUndoActions(); ScopedSymbolQueue::Get().Process(); m_data->EndBulkModifySymbols(); - m_data->ForgetUndoActions(id); } } |
