From 9d1dbb6f61d12cd035caa99a54f4cf3e94115f88 Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Thu, 4 Jan 2007 11:12:01 +0000 Subject: [PATCH] Remove isInternal() method. We don't use it and should not do so in the future, we use LCursor::selection() instead. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16497 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/Selection.h | 4 ---- src/frontends/qt4/GuiSelection.C | 6 ------ src/frontends/qt4/GuiSelection.h | 1 - 3 files changed, 11 deletions(-) diff --git a/src/frontends/Selection.h b/src/frontends/Selection.h index 81380d164a..fd9c889734 100644 --- a/src/frontends/Selection.h +++ b/src/frontends/Selection.h @@ -49,10 +49,6 @@ public: * from the kernel and push it to X with this method. */ virtual void put(docstring const &) = 0; - - /// state of clipboard. - /// \retval true if the system clipboard has been set within LyX. - virtual bool isInternal() const = 0; }; } // namespace frontend diff --git a/src/frontends/qt4/GuiSelection.C b/src/frontends/qt4/GuiSelection.C index 3142781abd..83c3dfb625 100644 --- a/src/frontends/qt4/GuiSelection.C +++ b/src/frontends/qt4/GuiSelection.C @@ -62,11 +62,5 @@ void GuiSelection::put(docstring const & str) QClipboard::Selection); } - -bool GuiSelection::isInternal() const -{ - return qApp->clipboard()->ownsSelection(); -} - } // namespace frontend } // namespace lyx diff --git a/src/frontends/qt4/GuiSelection.h b/src/frontends/qt4/GuiSelection.h index fffb803b90..ed6210f713 100644 --- a/src/frontends/qt4/GuiSelection.h +++ b/src/frontends/qt4/GuiSelection.h @@ -33,7 +33,6 @@ public: void haveSelection(bool own); docstring const get() const; void put(docstring const & str); - bool isInternal() const; //@} };