[dasher/relicence] Remove version flag
- From: Gavin Henderson <ghenderson src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dasher/relicence] Remove version flag
- Date: Tue, 1 Mar 2022 11:10:45 +0000 (UTC)
commit d5068fc149a88a993ccfb855ab4112c23145fa98
Author: Gavin Henderson <gavin henderson hotmail co uk>
Date: Mon Feb 28 15:07:49 2022 +0000
Remove version flag
Src/Gtk2/DasherAppSettings.cpp | 11 +----------
Src/Gtk2/DasherAppSettings.h | 1 -
Src/main.cc | 8 --------
3 files changed, 1 insertion(+), 19 deletions(-)
---
diff --git a/Src/Gtk2/DasherAppSettings.cpp b/Src/Gtk2/DasherAppSettings.cpp
index 36ec440d..73a659ba 100644
--- a/Src/Gtk2/DasherAppSettings.cpp
+++ b/Src/Gtk2/DasherAppSettings.cpp
@@ -152,13 +152,4 @@ void option_help()
for(unsigned int i = 0; i < sizeof(stringparamtable)/sizeof(stringparamtable[0]); i++) {
g_print("%-30s %-12s %s\n", stringparamtable[i].regName, stringparamtable[i].defaultValue,
stringparamtable[i].humanReadable);
}
-}
-
-void option_version()
-{
- g_print("\n");
- // Note to translators: This is the version keyword showing for the command line option "--version"
- g_print("%-30s %-30s \n", _("Version"), PACKAGE_VERSION);
- // Note to translators: This is the license keyword showing for the command line option "--version"
- g_print("%-30s %-30s\n", _("License"), "GPL 2+");
-}
+}
\ No newline at end of file
diff --git a/Src/Gtk2/DasherAppSettings.h b/Src/Gtk2/DasherAppSettings.h
index 91acf843..7a22c544 100644
--- a/Src/Gtk2/DasherAppSettings.h
+++ b/Src/Gtk2/DasherAppSettings.h
@@ -81,5 +81,4 @@ private:
};
void option_help();
-void option_version();
#endif
diff --git a/Src/main.cc b/Src/main.cc
index 223225f5..650283f7 100644
--- a/Src/main.cc
+++ b/Src/main.cc
@@ -136,8 +136,6 @@ int main(int argc, char *argv[]) {
{"config", 'c', 0, G_OPTION_ARG_STRING, &(sCommandLine.szConfigFile), N_("XML configuration file name"),
NULL},
// Note to translators: This is the help string for "--help-options"
{"help-options", 0, 0, G_OPTION_ARG_NONE, &do_option_help, N_("Describe \"--options\"."), NULL},
- // Note to translators: This is the help string for "--version"
- {"version", 'v', 0, G_OPTION_ARG_NONE, &do_show_version, N_("Show the version details."), NULL},
{NULL}
};
@@ -165,12 +163,6 @@ int main(int argc, char *argv[]) {
return 0;
}
- if (do_show_version)
- {
- option_version();
- return 0;
- }
-
gtk_init(&argc, &argv);
g_set_application_name("Dasher");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]