[gedit] gedit-app: remove unused 'help' option entry
- From: Ryan Lortie <desrt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] gedit-app: remove unused 'help' option entry
- Date: Thu, 6 Feb 2014 12:04:27 +0000 (UTC)
commit 277d90f5d7a0245890b68faa8ada42a1ddf81eb2
Author: Ryan Lortie <desrt desrt ca>
Date: Fri Jan 24 22:17:42 2014 -0500
gedit-app: remove unused 'help' option entry
GOptionContext adds this for us automatically -- we don't need to do
anything.
gedit/gedit-app.c | 8 --------
1 files changed, 0 insertions(+), 8 deletions(-)
---
diff --git a/gedit/gedit-app.c b/gedit/gedit-app.c
index a1dd59d..5bf3be3 100644
--- a/gedit/gedit-app.c
+++ b/gedit/gedit-app.c
@@ -84,7 +84,6 @@ struct _GeditAppPrivate
GNetworkMonitor *monitor;
};
-static gboolean help = FALSE;
static gboolean version = FALSE;
static gboolean list_encodings = FALSE;
static gchar *encoding_charset = NULL;
@@ -104,12 +103,6 @@ static GApplicationCommandLine *command_line = NULL;
static const GOptionEntry options[] =
{
- /* Help */
- {
- "help", '?', 0, G_OPTION_ARG_NONE, &help,
- N_("Show the application's help"), NULL
- },
-
/* Version */
{
"version", 'V', 0, G_OPTION_ARG_NONE, &version,
@@ -854,7 +847,6 @@ clear_options (void)
g_clear_object (&stdin_stream);
g_slist_free_full (file_list, g_object_unref);
- help = FALSE;
version = FALSE;
list_encodings = FALSE;
encoding_charset = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]