From 2dc0945bdad30f26544240729961151b84d0e434 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Mon, 17 Sep 2007 21:48:25 +0000 Subject: [PATCH] remove InsetCollapsable::drawSelection(): this was not used. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20327 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetCollapsable.cpp | 22 ---------------------- src/insets/InsetCollapsable.h | 3 +-- 2 files changed, 1 insertion(+), 24 deletions(-) diff --git a/src/insets/InsetCollapsable.cpp b/src/insets/InsetCollapsable.cpp index f2629c113d..0c260c0042 100644 --- a/src/insets/InsetCollapsable.cpp +++ b/src/insets/InsetCollapsable.cpp @@ -351,28 +351,6 @@ void InsetCollapsable::draw(PainterInfo & pi, int x, int y) const } -void InsetCollapsable::drawSelection(PainterInfo & pi, int x, int y) const -{ - switch (geometry()) { - case LeftButton: - x += dimensionCollapsed().wid; - InsetText::drawSelection(pi, x, y); - break; - case TopButton: - y += dimensionCollapsed().des; - InsetText::drawSelection(pi, x, y); - break; - case ButtonOnly: - break; - case NoButton: - case SubLabel: - case Corners: - InsetText::drawSelection(pi, x, y); - break; - } -} - - void InsetCollapsable::cursorPos(BufferView const & bv, CursorSlice const & sl, bool boundary, int & x, int & y) const { diff --git a/src/insets/InsetCollapsable.h b/src/insets/InsetCollapsable.h index 404458fe51..2aa2ce9c3a 100644 --- a/src/insets/InsetCollapsable.h +++ b/src/insets/InsetCollapsable.h @@ -57,8 +57,7 @@ public: bool metrics(MetricsInfo &, Dimension &) const; /// void draw(PainterInfo & pi, int x, int y) const; - /// - void drawSelection(PainterInfo & pi, int x, int y) const; + /// return x,y of given position relative to the inset's baseline void cursorPos(BufferView const & bv, CursorSlice const & sl, bool boundary, int & x, int & y) const; -- 2.39.2