From 19668bf2d652212410300bbbd5a10080923064c3 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Mon, 2 Jun 2008 09:18:07 +0000 Subject: [PATCH] remove unused code. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25062 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiMath.cpp | 32 -------------------------------- src/frontends/qt4/GuiMath.h | 10 ---------- 2 files changed, 42 deletions(-) diff --git a/src/frontends/qt4/GuiMath.cpp b/src/frontends/qt4/GuiMath.cpp index 4f7eb81133..9bb7bfd15c 100644 --- a/src/frontends/qt4/GuiMath.cpp +++ b/src/frontends/qt4/GuiMath.cpp @@ -69,32 +69,6 @@ void GuiMath::dispatchFunc(FuncCode action, string const & arg) const } -void GuiMath::dispatchInsert(string const & name) const -{ - dispatchFunc(LFUN_MATH_INSERT, '\\' + name); -} - - -void GuiMath::dispatchSubscript() const -{ - dispatchFunc(LFUN_MATH_INSERT, "_"); -} - - -void GuiMath::dispatchSuperscript() const -{ - dispatchFunc(LFUN_MATH_INSERT, "^"); -} - - -void GuiMath::dispatchCubeRoot() const -{ - dispatchFunc(LFUN_MATH_INSERT, "\\root"); - dispatchFunc(LFUN_SELF_INSERT, "3"); - dispatchFunc(LFUN_CHAR_FORWARD); -} - - void GuiMath::dispatchMatrix(string const & str) const { dispatchFunc(LFUN_MATH_MATRIX, str); @@ -113,12 +87,6 @@ void GuiMath::dispatchBigDelim(string const & str) const } -void GuiMath::dispatchToggleDisplay() const -{ - dispatchFunc(LFUN_MATH_DISPLAY); -} - - void GuiMath::showDialog(string const & name) const { dispatchFunc(LFUN_DIALOG_SHOW, name); diff --git a/src/frontends/qt4/GuiMath.h b/src/frontends/qt4/GuiMath.h index a406f738b0..31afc17ddd 100644 --- a/src/frontends/qt4/GuiMath.h +++ b/src/frontends/qt4/GuiMath.h @@ -48,22 +48,12 @@ public: /// dispatch an LFUN void dispatchFunc(FuncCode action, std::string const & arg = std::string()) const; - /// Insert a math symbol into the doc. - void dispatchInsert(std::string const & name) const; - /// Insert a subscript. - void dispatchSubscript() const; - /// Insert a superscript. - void dispatchSuperscript() const; - /// Insert a cube root - void dispatchCubeRoot() const; /// Insert a matrix void dispatchMatrix(std::string const & str) const; /// Insert a variable size delimiter void dispatchDelim(std::string const & str) const; /// Insert a big delimiter void dispatchBigDelim(std::string const & str) const; - /// Switch between display and inline - void dispatchToggleDisplay() const; /** A request to the kernel to launch a dialog. * \param name the dialog identifier. */ -- 2.39.5