Author Topic: unused member variable in cbEditor.cpp class cbEditorInternalData  (Read 3237 times)

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5913
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
By reading the source code, I found that this variable is un-used:
Code
m_LastDebugLine

Any ideas?
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: unused member variable in cbEditor.cpp class cbEditorInternalData
« Reply #1 on: November 08, 2011, 09:32:54 am »
Code
m_LastDebugLine
I guess its a relict from very old days, where the debugger was strongly coupled. If there isn't an interface to that variable which might be used by a plugin, this could be removed.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ