Removed dead code from view_controls.h
CHANGED: Removed "ForcedCursorPosition()" and "IsCursorPositionForced()" from view_controls.h. First, these functions are completely redundant as they do the exact same thing but have different names. Second, neither is called anywhere in the entire KiCad code base.
This commit is contained in:
parent
c7dd98fb1a
commit
f3b3d18319
|
@ -275,15 +275,6 @@ public:
|
|||
*/
|
||||
virtual void SetCrossHairCursorPosition( const VECTOR2D& aPosition, bool aWarpView = true ) = 0;
|
||||
|
||||
/**
|
||||
* Return true if the current cursor position is forced to a specific location, ignoring
|
||||
* the mouse cursor position.
|
||||
*/
|
||||
bool ForcedCursorPosition() const
|
||||
{
|
||||
return m_settings.m_forceCursorPosition;
|
||||
}
|
||||
|
||||
/**
|
||||
* Enable or disables display of cursor.
|
||||
*
|
||||
|
@ -308,16 +299,6 @@ public:
|
|||
m_settings.m_cursorCaptured = aEnabled;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return true if the cursor position is set by one of the tools.
|
||||
*
|
||||
* A forced cursor position means it does not react to mouse movement.
|
||||
*/
|
||||
inline bool IsCursorPositionForced() const
|
||||
{
|
||||
return m_settings.m_forceCursorPosition;
|
||||
}
|
||||
|
||||
/**
|
||||
* If enabled (@see SetEnableCursorWarping(), warps the cursor to the specified position,
|
||||
* expressed either in the screen coordinates or the world coordinates.
|
||||
|
|
Loading…
Reference in New Issue