From ebdd3bc0a43b269cc79eb06a3197548fcfd10776 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Sat, 24 May 2008 09:32:50 +0000 Subject: [PATCH] Get rid of GuiApplication::readMenus(). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24922 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiApplication.cpp | 8 +------- src/frontends/qt4/GuiApplication.h | 1 - 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/frontends/qt4/GuiApplication.cpp b/src/frontends/qt4/GuiApplication.cpp index 80f4fe4483..9a6191a830 100644 --- a/src/frontends/qt4/GuiApplication.cpp +++ b/src/frontends/qt4/GuiApplication.cpp @@ -1035,12 +1035,6 @@ Buffer const * GuiApplication::updateInset(Inset const * inset) const } -void GuiApplication::readMenus(Lexer & lex) -{ - menus().read(lex); -} - - bool GuiApplication::searchMenu(FuncRequest const & func, vector & names) const { @@ -1120,7 +1114,7 @@ bool GuiApplication::readUIFile(string const & name, bool include) break; } case ui_menuset: - readMenus(lex); + d->menus_.read(lex); break; case ui_toolbarset: diff --git a/src/frontends/qt4/GuiApplication.h b/src/frontends/qt4/GuiApplication.h index e36934d35d..cafa489436 100644 --- a/src/frontends/qt4/GuiApplication.h +++ b/src/frontends/qt4/GuiApplication.h @@ -64,7 +64,6 @@ public: bool event(QEvent * e); bool getRgbColor(ColorCode col, RGBColor & rgbcol); std::string const hexName(ColorCode col); - void readMenus(Lexer & lex); void registerSocketCallback(int fd, SocketCallback func); void unregisterSocketCallback(int fd); bool searchMenu(FuncRequest const & func, std::vector & names) const;