Flags: remove unused IS_WIRE_IMAGE

This commit is contained in:
Mike Williams 2022-12-28 09:26:40 -05:00
parent d62681f6db
commit 68fd0271c2
2 changed files with 2 additions and 4 deletions

View File

@ -103,7 +103,6 @@ public:
inline bool IsNew() const { return m_flags & IS_NEW; }
inline bool IsMoving() const { return m_flags & IS_MOVING; }
inline bool IsDragging() const { return m_flags & IS_DRAGGING; }
inline bool IsWireImage() const { return m_flags & IS_WIRE_IMAGE; }
inline bool IsSelected() const { return m_flags & SELECTED; }
inline bool IsEntered() const { return m_flags & ENTERED; }
inline bool IsResized() const { return m_flags & IS_RESIZING; }
@ -114,7 +113,6 @@ public:
return ( m_flags & ( IS_ROLLOVER | IS_MOVING ) ) == IS_ROLLOVER;
}
inline void SetWireImage() { SetFlags( IS_WIRE_IMAGE ); }
inline void SetSelected() { SetFlags( SELECTED ); }
inline void SetBrightened() { SetFlags( BRIGHTENED ); }
@ -148,7 +146,7 @@ public:
EDA_ITEM_FLAGS GetEditFlags() const
{
constexpr int mask = ( IS_NEW | IS_PASTED | IS_MOVING | IS_RESIZING | IS_DRAGGING
| IS_CHANGED | IS_WIRE_IMAGE | STRUCT_DELETED );
| IS_CHANGED | STRUCT_DELETED );
return m_flags & mask;
}

View File

@ -42,7 +42,7 @@
#define IS_RESIZING (1 << 5) ///< Item being resized
#define IS_DRAGGING (1 << 6) ///< Item being dragged
#define IS_DELETED (1 << 7)
#define IS_WIRE_IMAGE (1 << 8) ///< Item to be drawn as wireframe while editing
#define STARTPOINT (1 << 9) ///< When a line is selected, these flags indicate which
#define ENDPOINT (1 << 10) ///< ends. (Used to support dragging.)
#define SELECTED (1 << 11) ///< Item was manually selected by the user