]> git.lyx.org Git - features.git/commitdiff
* Gui::newView(): cleanup unused arguments.
authorAbdelrazak Younes <younes@lyx.org>
Thu, 12 Oct 2006 22:30:42 +0000 (22:30 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Thu, 12 Oct 2006 22:30:42 +0000 (22:30 +0000)
* 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

src/frontends/Application.C
src/frontends/Gui.h
src/frontends/gtk/GuiImplementation.C
src/frontends/gtk/GuiImplementation.h
src/frontends/qt3/GuiImplementation.h
src/frontends/qt4/GuiImplementation.C
src/frontends/qt4/GuiImplementation.h

index b9f257b193baac0ec73ca7da87b726c672c00770..ded18b8d6fcfd4141c5ca8823b42ccbf62f9037d 100644 (file)
@@ -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));
index 9b5e7a99493c2a47b6b5c155821d189649119811..dc56db26f3d445e0cb157985e39d4fe77367a7f9 100644 (file)
@@ -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;
        ///
index 86ded6895dbe8f8aaced67e8e1c9b1f3478eb416..04002d2f3cbd0af1f2020ee3dd36465f474287d7 100644 (file)
@@ -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;
index e18a760678e96e4fb2654b36d1321f64ccf5c815..9d478ec3a78614c19f299436234c3e77e75516b0 100644 (file)
@@ -39,7 +39,7 @@ public:
        {
        }
 
-       int newView(unsigned int w, unsigned int h);
+       int newView();
 
        LyXView & view(int /*id*/)
        {
index 60f03aad95c44c13d996f8c445118d19f624814f..2d77f16bf924ecdc7debab45a5c424146fe97242 100644 (file)
@@ -45,7 +45,7 @@ public:
        {
        }
 
-       int newView(unsigned int /*w*/, unsigned int /*h*/)
+       int newView()
        {
                view_.reset(new FView);
                return 0;
index 0c813cad9e4864882093979d442aacc7eb69a5e0..5e70eb2f3f867ac1145ba581266779b141e5902a 100644 (file)
@@ -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_;
index 312227dc0c0a8f71f0faf828812288b24dcb790f..b0dc72f9137d291d3e1d3e169fa112fefbbc2230 100644 (file)
@@ -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);