Remove unnecessary old code

* this code is from before there was a separate section for OpModuleProcessed,
  so it is now redundant and can always use the end iterator of the names
  section.
This commit is contained in:
baldurk
2025-09-08 13:33:03 +01:00
parent bb2ac5ee27
commit 5eaac6c03f
@@ -263,17 +263,7 @@ void Editor::SetName(Id id, const rdcstr &name)
{
Operation op = OpName(id, name);
Iter it;
// OpName/OpMemberName must be before OpModuleProcessed.
for(it = Begin(Section::DebugNames); it < End(Section::DebugNames); ++it)
{
if(it.opcode() == Op::ModuleProcessed)
break;
}
if(End(Section::DebugNames) < it)
it = End(Section::DebugNames);
Iter it = End(Section::DebugNames);
InsertOperation(op, it.offs());
}