Abdelrazak Younes wrote:
There's two remaining functions in frontends/lyx_gui.C:

/**
 * set up GUI parameters. At this point lyxrc may
 * be used.
 */
void parse_lyxrc();


This is not used nor implemented so I think I will just delete the method if there's no objection.


/**
 * return the status flag for a given action. This can be used to tell
 * that a given lfun is not implemented by a frontend
 */
FuncStatus getStatus(FuncRequest const & ev);

This one was supposed to be different for each frontend but none of the existing one made use of it. Right now the code is:

I have deleted those two functions now.

Abdel.

URL: http://www.lyx.org/trac/changeset/15256
Log:
* lyx_gui: parse_lyxrc() and getStatus() methods deleted.

Modified:
    lyx-devel/trunk/src/frontends/lyx_gui.C
    lyx-devel/trunk/src/frontends/lyx_gui.h
    lyx-devel/trunk/src/lyx_main.C
    lyx-devel/trunk/src/lyxfunc.C

Modified: lyx-devel/trunk/src/frontends/lyx_gui.C
URL: http://www.lyx.org/trac/file/lyx-devel/trunk/src/frontends/lyx_gui.C?rev=15256
==============================================================================
--- lyx-devel/trunk/src/frontends/lyx_gui.C (original)
+++ lyx-devel/trunk/src/frontends/lyx_gui.C Thu Oct  5 18:52:04 2006
@@ -15,8 +15,6 @@

 #include "Application.h"

-#include "funcrequest.h"
-
 using std::string;

 lyx::frontend::Application * theApp;
@@ -26,23 +24,4 @@

 bool use_gui = true;

-void parse_lyxrc()
-{}
-
-
-FuncStatus getStatus(FuncRequest const & ev)
-{
-       FuncStatus flag;
-       switch (ev.action) {
-       case LFUN_TOOLTIPS_TOGGLE:
-               flag.unknown(true);
-               break;
-       default:
-               break;
-       }
-
-       return flag;
-}
-
-
 }; // namespace lyx_gui

Modified: lyx-devel/trunk/src/frontends/lyx_gui.h
URL: http://www.lyx.org/trac/file/lyx-devel/trunk/src/frontends/lyx_gui.h?rev=15256
==============================================================================
--- lyx-devel/trunk/src/frontends/lyx_gui.h (original)
+++ lyx-devel/trunk/src/frontends/lyx_gui.h Thu Oct  5 18:52:04 2006
@@ -37,12 +37,6 @@
 extern bool use_gui;

 /**
- * set up GUI parameters. At this point lyxrc may
- * be used.
- */
-void parse_lyxrc();
-
-/**
  * Enter the main event loop (\sa LyX::exec2)
  */
 int exec(int & argc, char * argv[]);
@@ -51,12 +45,6 @@
  * Synchronise all pending events.
  */
 void sync_events();
-
-/**
- * return the status flag for a given action. This can be used to tell
- * that a given lfun is not implemented by a frontend
- */
-FuncStatus getStatus(FuncRequest const & ev);

 /**
  * Given col, fills r, g, b in the range 0-255.

Modified: lyx-devel/trunk/src/lyx_main.C
URL: http://www.lyx.org/trac/file/lyx-devel/trunk/src/lyx_main.C?rev=15256
==============================================================================
--- lyx-devel/trunk/src/lyx_main.C (original)
+++ lyx-devel/trunk/src/lyx_main.C Thu Oct  5 18:52:04 2006
@@ -249,9 +249,6 @@
        lyxerr[Debug::INIT] << "Initializing LyX::init...done" << endl;
        if (!success)
                return EXIT_FAILURE;
-
-       if (lyx_gui::use_gui)
-               lyx_gui::parse_lyxrc();

        vector<string> files;


Modified: lyx-devel/trunk/src/lyxfunc.C
URL: http://www.lyx.org/trac/file/lyx-devel/trunk/src/lyxfunc.C?rev=15256
==============================================================================
--- lyx-devel/trunk/src/lyxfunc.C (original)
+++ lyx-devel/trunk/src/lyxfunc.C Thu Oct  5 18:52:04 2006
@@ -368,8 +368,13 @@
                flag.unknown(true);
                flag.enabled(false);
                break;
+
+       case LFUN_TOOLTIPS_TOGGLE:
+               flag.unknown(true);
+               break;
+
        default:
-               flag |= lyx_gui::getStatus(cmd);
+               break;
        }

        if (flag.unknown()) {

Reply via email to