From 02f3ee3d1011ff7a2ba2c4fe79d34cbbb417418b Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 15 Sep 2008 13:36:28 +0000 Subject: [PATCH] remove the now unused GetScroll[XY] git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55643 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/generic/grid.h | 12 ------------ src/generic/grid.cpp | 16 ---------------- 2 files changed, 28 deletions(-) diff --git a/include/wx/generic/grid.h b/include/wx/generic/grid.h index 4565fb8f4d..43e68b09a8 100644 --- a/include/wx/generic/grid.h +++ b/include/wx/generic/grid.h @@ -1628,18 +1628,6 @@ public: int GetScrollLineX() const { return m_scrollLineX; } 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 #if wxUSE_DRAG_AND_DROP virtual void SetDropTarget(wxDropTarget *dropTarget); diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index de06f058ed..93dcddd6e0 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -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) 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 // ============================================================================ -- 2.47.2