Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Debuggergdb.cpp redundant code
AndrewCot:
The
--- Code: ---buffer.Remove(idx);
--- End code ---
removes the characters in the buffer, so it removed from the idx offset to the end.
The RemoveLast calls remove the '>' if they are there.
So the last line calling with only the Left idx characters is redundant as the first line removed the characters after idx.
ollydbg:
--- Quote from: AndrewCot on March 20, 2022, 01:59:56 am ---The
--- Code: ---buffer.Remove(idx);
--- End code ---
removes the characters in the buffer, so it removed from the idx offset to the end.
The RemoveLast calls remove the '>' if they are there.
So the last line calling with only the Left idx characters is redundant as the first line removed the characters after idx.
--- End quote ---
OK, you are correct!
Navigation
[0] Message Index
[*] Previous page
Go to full version