remove the now unused GetScroll[XY]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55643 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1628,18 +1628,6 @@ public:
|
|||||||
int GetScrollLineX() const { return m_scrollLineX; }
|
int GetScrollLineX() const { return m_scrollLineX; }
|
||||||
int GetScrollLineY() const { return m_scrollLineY; }
|
int GetScrollLineY() const { return m_scrollLineY; }
|
||||||
|
|
||||||
// Implementation
|
|
||||||
int GetScrollX(int x) const
|
|
||||||
{
|
|
||||||
return (x + GetScrollLineX() - 1) / GetScrollLineX();
|
|
||||||
}
|
|
||||||
|
|
||||||
int GetScrollY(int y) const
|
|
||||||
{
|
|
||||||
return (y + GetScrollLineY() - 1) / GetScrollLineY();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// ------- drag and drop
|
// ------- drag and drop
|
||||||
#if wxUSE_DRAG_AND_DROP
|
#if wxUSE_DRAG_AND_DROP
|
||||||
virtual void SetDropTarget(wxDropTarget *dropTarget);
|
virtual void SetDropTarget(wxDropTarget *dropTarget);
|
||||||
|
@@ -459,22 +459,6 @@ static const size_t GRID_SCROLL_LINE_Y = GRID_SCROLL_LINE_X;
|
|||||||
// in these hash tables is the number of rows/columns)
|
// in these hash tables is the number of rows/columns)
|
||||||
static const int GRID_HASH_SIZE = 100;
|
static const int GRID_HASH_SIZE = 100;
|
||||||
|
|
||||||
#if 0
|
|
||||||
// ----------------------------------------------------------------------------
|
|
||||||
// private functions
|
|
||||||
// ----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
static inline int GetScrollX(int x)
|
|
||||||
{
|
|
||||||
return (x + GRID_SCROLL_LINE_X - 1) / GRID_SCROLL_LINE_X;
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline int GetScrollY(int y)
|
|
||||||
{
|
|
||||||
return (y + GRID_SCROLL_LINE_Y - 1) / GRID_SCROLL_LINE_Y;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
// implementation
|
// implementation
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
|
Reference in New Issue
Block a user