[gnumeric] Gnumeric: drop --split-func
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] Gnumeric: drop --split-func
- Date: Wed, 29 Nov 2017 23:40:41 +0000 (UTC)
commit 71d8e95cfa313c7a4ab6d90eec275daed399289d
Author: Morten Welinder <terra gnome org>
Date: Wed Nov 29 18:39:54 2017 -0500
Gnumeric: drop --split-func
That has been obsolete and useless for a decade or more.
src/func.c | 6 +-----
src/main-application.c | 11 +----------
2 files changed, 2 insertions(+), 15 deletions(-)
---
diff --git a/src/func.c b/src/func.c
index a69761a..8bb88ce 100644
--- a/src/func.c
+++ b/src/func.c
@@ -288,7 +288,7 @@ dump_samples (GPtrArray *defs, FILE *out)
* Right now
* 0 : www.gnumeric.org's function.shtml page
* 1 :
- * 2 : generate_po
+ * 2 : (obsolete)
* 3 : dump function usage count
* 4 : external refs
* 5 : all sample expressions
@@ -302,10 +302,6 @@ function_dump_defs (char const *filename, int dump_type)
GPtrArray *ordered;
GnmFuncGroup const *group = NULL;
- if (dump_type == 2) {
- g_printerr ("generate po is obsolete.\n");
- return;
- }
g_return_if_fail (filename != NULL);
if ((output_file = g_fopen (filename, "w")) == NULL){
diff --git a/src/main-application.c b/src/main-application.c
index e0c5017..dbc403f 100644
--- a/src/main-application.c
+++ b/src/main-application.c
@@ -46,7 +46,6 @@
#include <string.h>
#include <locale.h>
-static gboolean split_funcdocs = FALSE;
static gboolean immediate_exit_flag = FALSE;
static gboolean gnumeric_no_splash = FALSE;
static gboolean gnumeric_no_warnings = FALSE;
@@ -84,12 +83,6 @@ static const GOptionEntry gnumeric_options [] = {
N_("FILE")
},
{
- "split-func", 0,
- G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_NONE, &split_funcdocs,
- N_("Generate new help and po files"),
- NULL
- },
- {
"quit", 0,
G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_NONE, &immediate_exit_flag,
N_("Exit immediately after loading the selected books"),
@@ -263,7 +256,7 @@ main (int argc, char const **argv)
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
bind_textdomain_codeset (GETTEXT_PACKAGE "-functions", "UTF-8");
- with_gui = !func_def_file && !func_state_file && !split_funcdocs;
+ with_gui = !func_def_file && !func_state_file;
if (with_gui) {
gnm_session_init (argv[0]);
@@ -276,8 +269,6 @@ main (int argc, char const **argv)
return gnm_dump_func_defs (func_state_file, 0);
if (func_def_file)
return gnm_dump_func_defs (func_def_file, 1);
- if (split_funcdocs)
- return gnm_dump_func_defs (NULL, 2);
if (with_gui) {
go_component_set_default_command_context (cc = gnm_cmd_context_stderr_new ());
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]