From 85e5469362db3c3fb89f7dc3fbe1eb1431fb2fcc Mon Sep 17 00:00:00 2001 From: axtloss Date: Tue, 28 May 2024 19:43:28 +0200 Subject: add license header --- src/main.c | 31 +++---------------------------- 1 file changed, 3 insertions(+), 28 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index b4b5330..2aa6e4b 100644 --- a/src/main.c +++ b/src/main.c @@ -22,20 +22,17 @@ #include "sun.h" #include -#include #include #include #include #include -#include -#include #include static GClueAccuracyLevel accuracy_level = GCLUE_ACCURACY_LEVEL_EXACT; - GClueSimple *simple = NULL; - GClueClient *client = NULL; - GMainLoop *main_loop; +GClueSimple *simple = NULL; +GClueClient *client = NULL; +GMainLoop *main_loop; enum LocationType loctype = 0; dictionary *dict = NULL; @@ -145,28 +142,6 @@ gint main (gint argc, gchar *argv[]) { - g_autoptr(GOptionContext) context = NULL; - g_autoptr(GError) error = NULL; - gboolean version = FALSE; - GOptionEntry main_entries[] = { - { "version", 0, 0, G_OPTION_ARG_NONE, &version, "Show program version" }, - { NULL } - }; - - context = g_option_context_new ("- my command line tool"); - g_option_context_add_main_entries (context, main_entries, NULL); - - if (!g_option_context_parse (context, &argc, &argv, &error)) - { - g_printerr ("%s\n", error->message); - return EXIT_FAILURE; - } - - if (version) - { - g_printerr ("%s\n", PACKAGE_VERSION); - return EXIT_SUCCESS; - } dict = load_config (); loctype = config_get_location_type (dict); -- cgit v1.2.3