mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
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:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user