From: Abdelrazak Younes Date: Thu, 12 Oct 2006 22:30:42 +0000 (+0000) Subject: * Gui::newView(): cleanup unused arguments. X-Git-Tag: 1.6.10~12397 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=e2eb1d9692f858a9346ec7d7687349301748d8ce;p=features.git * Gui::newView(): cleanup unused arguments. * qt4/GuiImplementation.h: remove duplicate unused newWorkArea() method definition. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15317 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/frontends/Application.C b/src/frontends/Application.C index b9f257b193..ded18b8d6f 100644 --- a/src/frontends/Application.C +++ b/src/frontends/Application.C @@ -111,7 +111,7 @@ LyXView & Application::createView(unsigned int width, // this can't be done before because it needs the Languages object //initEncodings(); - int view_id = gui().newView(width, height); + int view_id = gui().newView(); LyXView & view = gui().view(view_id); pimpl_->lyxfunc_.reset(new LyXFunc(&view)); diff --git a/src/frontends/Gui.h b/src/frontends/Gui.h index 9b5e7a9949..dc56db26f3 100644 --- a/src/frontends/Gui.h +++ b/src/frontends/Gui.h @@ -36,7 +36,7 @@ public: virtual ~Gui() {} /// - virtual int newView(unsigned int width, unsigned int height) = 0; + virtual int newView() = 0; /// virtual LyXView & view(int id) = 0; /// diff --git a/src/frontends/gtk/GuiImplementation.C b/src/frontends/gtk/GuiImplementation.C index 86ded6895d..04002d2f3c 100644 --- a/src/frontends/gtk/GuiImplementation.C +++ b/src/frontends/gtk/GuiImplementation.C @@ -30,7 +30,7 @@ namespace lyx { namespace frontend { -int GuiImplementation::newView(unsigned int /*w*/, unsigned int /*h*/) +int GuiImplementation::newView() { view_.reset(new GView); return 0; diff --git a/src/frontends/gtk/GuiImplementation.h b/src/frontends/gtk/GuiImplementation.h index e18a760678..9d478ec3a7 100644 --- a/src/frontends/gtk/GuiImplementation.h +++ b/src/frontends/gtk/GuiImplementation.h @@ -39,7 +39,7 @@ public: { } - int newView(unsigned int w, unsigned int h); + int newView(); LyXView & view(int /*id*/) { diff --git a/src/frontends/qt3/GuiImplementation.h b/src/frontends/qt3/GuiImplementation.h index 60f03aad95..2d77f16bf9 100644 --- a/src/frontends/qt3/GuiImplementation.h +++ b/src/frontends/qt3/GuiImplementation.h @@ -45,7 +45,7 @@ public: { } - int newView(unsigned int /*w*/, unsigned int /*h*/) + int newView() { view_.reset(new FView); return 0; diff --git a/src/frontends/qt4/GuiImplementation.C b/src/frontends/qt4/GuiImplementation.C index 0c813cad9e..5e70eb2f3f 100644 --- a/src/frontends/qt4/GuiImplementation.C +++ b/src/frontends/qt4/GuiImplementation.C @@ -31,7 +31,7 @@ GuiImplementation::GuiImplementation(): max_view_id_(0), max_wa_id_(0) } -int GuiImplementation::newView(unsigned int /*w*/, unsigned int /*h*/) +int GuiImplementation::newView() { size_t const id = max_view_id_; ++max_view_id_; diff --git a/src/frontends/qt4/GuiImplementation.h b/src/frontends/qt4/GuiImplementation.h index 312227dc0c..b0dc72f913 100644 --- a/src/frontends/qt4/GuiImplementation.h +++ b/src/frontends/qt4/GuiImplementation.h @@ -36,11 +36,10 @@ public: GuiImplementation(); virtual ~GuiImplementation() {} - int newView(unsigned int width, unsigned int height); + int newView(); LyXView& view(int id); void destroyView(int id); int newWorkArea(unsigned int width, unsigned int height, int view_id); - int newWorkArea(int w, int h); WorkArea& workArea(int id); void destroyWorkArea(int id);