[caribou] daemon: Remove option handling code



commit e556a64cf699a465d8080b4bea12534c273542c2
Author: Daiki Ueno <dueno src gnome org>
Date:   Mon Nov 7 17:21:15 2016 +0100

    daemon: Remove option handling code
    
    This reverts commit 418d68d8db120b17e5fc4a5c8b6452afbcff8120.  Now that
    the caribou executable is installed in libexecdir, there is no reason to
    keep the friendly help message.

 daemon/daemon.vala |   14 --------------
 1 files changed, 0 insertions(+), 14 deletions(-)
---
diff --git a/daemon/daemon.vala b/daemon/daemon.vala
index 94f3847..c47b187 100644
--- a/daemon/daemon.vala
+++ b/daemon/daemon.vala
@@ -201,10 +201,6 @@ namespace Caribou {
     }
 }
 
-static const OptionEntry[] options = {
-    { null }
-};
-
 static int main (string[] args) {
     Gdk.init (ref args);
 
@@ -213,16 +209,6 @@ static int main (string[] args) {
     Intl.bind_textdomain_codeset (Config.GETTEXT_PACKAGE, "UTF-8");
     Intl.textdomain (Config.GETTEXT_PACKAGE);
 
-    var option_context = new OptionContext (_(
-        "— accessibility event monitoring daemon for screen keyboard"));
-    option_context.add_main_entries (options, "caribou");
-    try {
-        option_context.parse (ref args);
-    } catch (OptionError e) {
-        stderr.printf ("%s\n", e.message);
-        return 1;
-    }
-
     var retval = Atspi.init ();
     if (retval != 0) {
         printerr ("can't initialize atspi\n");


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]