//
// LevelEditorLayer::removeObject from 0x10035b530 to 0x10035b5bc (140 bytes)
//
// 5 xrefs:
// > LevelEditorLayer::removeAllObjectsOfType @ 0x10035bb98
// > LevelEditorLayer::breakApartTextObject @ 0x100362450
// > EditorUI::deleteObject @ 0x1003e9c20
// > EditorUI::spriteFromObjectString @ 0x1003eaa54
// > EditorUI::spriteFromObjectString @ 0x1003eaab4
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall LevelEditorLayer::removeObject(LevelEditorLayer *a1, GameObject *a2, bool a3)
{
UndoObject *v5; // x0
if ( a2 )
{
if ( !a3 )
{
sub_10024A45C((__int64)a1->m_redoObjects);
v5 = UndoObject::create(a2, Delete);
LevelEditorLayer::addToUndoList(a1, v5, 0);
}
((void (__fastcall *)(GameObject *, __int64))a2->deactivateObject)(a2, 1);
GJBaseGameLayer::removeObjectFromSection(a1, a2);
LevelEditorLayer::removeSpecial(a1, a2);
a1->m_unk3b22 = 1;
}
}