From: Abdelrazak Younes Date: Thu, 22 Nov 2007 22:20:51 +0000 (+0000) Subject: Remove unused code. X-Git-Tag: 1.6.10~7261 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=baa9153134319caa1e9e4a5ac66a6bb7b648678b;p=features.git Remove unused code. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21717 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/frontends/qt4/ButtonController.h b/src/frontends/qt4/ButtonController.h index 6e32c897e8..e282787dda 100644 --- a/src/frontends/qt4/ButtonController.h +++ b/src/frontends/qt4/ButtonController.h @@ -12,8 +12,8 @@ #ifndef BUTTONCONTROLLER_H #define BUTTONCONTROLLER_H -#include #include "ButtonPolicy.h" + #include "gettext.h" #include diff --git a/src/frontends/qt4/Dialog.h b/src/frontends/qt4/Dialog.h index 6a168382e0..485df55ee8 100644 --- a/src/frontends/qt4/Dialog.h +++ b/src/frontends/qt4/Dialog.h @@ -62,16 +62,6 @@ public: virtual void hide() {} - // Override in GuiDialog - virtual void slotOK() {} - virtual void slotApply() {} - virtual void slotRestore() {} - virtual void slotClose() {} - - /** This function is called, for example, if the GUI colours - * have been changed. - */ - virtual void redraw() {} //@} /** Check whether we may apply our data. @@ -106,9 +96,6 @@ public: /// Hide the dialog from sight virtual void hideView() = 0; - /// Redraw the dialog (e.g. if the colors have been remapped). - virtual void redrawView() = 0; - /// Create the dialog if necessary, update it and display it. virtual void showView() = 0; @@ -119,13 +106,6 @@ public: virtual bool isVisibleView() const = 0; //@} - /** Defaults to nothing. Can be used by the Controller, however, to - * indicate to the View that something has changed and that the - * dialog therefore needs updating. - * \param id identifies what should be updated. - */ - virtual void partialUpdateView(int /*id*/) = 0; - /// virtual std::string name() const = 0; diff --git a/src/frontends/qt4/DialogView.h b/src/frontends/qt4/DialogView.h index a2ac06abfd..b73814ff13 100644 --- a/src/frontends/qt4/DialogView.h +++ b/src/frontends/qt4/DialogView.h @@ -73,8 +73,6 @@ public: } bool isVisibleView() const { return QDialog::isVisible(); } void checkStatus() { updateView(); } - void redraw() { redrawView(); } - void redrawView() {} void updateData(std::string const & data) { initialiseParams(data); @@ -84,7 +82,6 @@ public: { widget_->updateView(); } - void partialUpdateView(int /*id*/) {} std::string name() const { return name_; } //@} private: diff --git a/src/frontends/qt4/DockView.h b/src/frontends/qt4/DockView.h index c93e4e9a7b..7b8db928e2 100644 --- a/src/frontends/qt4/DockView.h +++ b/src/frontends/qt4/DockView.h @@ -59,15 +59,12 @@ public: } bool isVisibleView() const { return QDockWidget::isVisible(); } void checkStatus() { updateView(); } - void redraw() { redrawView(); } - void redrawView() {} void updateData(std::string const & data) { initialiseParams(data); updateView(); } bool isClosing() const { return false; } - void partialUpdateView(int /*id*/) {} std::string name() const { return name_; } //@} private: diff --git a/src/frontends/qt4/GuiCitation.h b/src/frontends/qt4/GuiCitation.h index d2f27a9daa..dc3b18ae98 100644 --- a/src/frontends/qt4/GuiCitation.h +++ b/src/frontends/qt4/GuiCitation.h @@ -40,8 +40,6 @@ public: void applyView(); /// Hide the dialog from sight void hideView(); - /// Redraw the dialog (e.g. if the colors have been remapped). - void redrawView() {} /// Create the dialog if necessary, update it and display it. void showView(); /// \return true if the dialog is visible. diff --git a/src/frontends/qt4/GuiDialog.h b/src/frontends/qt4/GuiDialog.h index 6e3618b888..29f450e3a2 100644 --- a/src/frontends/qt4/GuiDialog.h +++ b/src/frontends/qt4/GuiDialog.h @@ -108,10 +108,6 @@ public: void hide(); - /** This function is called, for example, if the GUI colours - * have been changed. - */ - void redraw() { redrawView(); } //@} /** When applying, it's useful to know whether the dialog is about @@ -119,18 +115,10 @@ public: */ bool isClosing() const { return is_closing_; } - /** Defaults to nothing. Can be used by the Controller, however, to - * indicate to the View that something has changed and that the - * dialog therefore needs updating. - * \param id identifies what should be updated. - */ - virtual void partialUpdateView(int /*id*/) {} - /// std::string name() const { return name_; } void apply(); - void redrawView() {} /// Update the display of the dialog whilst it is still visible. virtual void updateView(); diff --git a/src/frontends/qt4/GuiParagraph.h b/src/frontends/qt4/GuiParagraph.h index 310345dbb1..4ea59f1c6c 100644 --- a/src/frontends/qt4/GuiParagraph.h +++ b/src/frontends/qt4/GuiParagraph.h @@ -82,14 +82,11 @@ private: } bool isVisibleView() const { return QDialog::isVisible(); } void checkStatus() { updateView(); } - void redraw() { redrawView(); } - void redrawView() {} void updateData(std::string const & data) { initialiseParams(data); updateView(); } - void partialUpdateView(int /*id*/) {} std::string name() const { return "paragraph"; } private: