mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Remove unused add handler in the option_type_info struct
(cherry picked from commit 7fe7b42093
)
This commit is contained in:
parent
89acb8f534
commit
9cd19d885f
@ -158,10 +158,6 @@ redir_set(struct option *opt, unsigned char *str)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static int
|
|
||||||
redir_add(struct option *opt, unsigned char *str)
|
|
||||||
wrap_or_(add, add(real, str), 0);
|
|
||||||
|
|
||||||
|
|
||||||
/* Support functions for config file parsing. */
|
/* Support functions for config file parsing. */
|
||||||
|
|
||||||
@ -399,21 +395,21 @@ tree_dup(struct option *opt, struct option *template)
|
|||||||
}
|
}
|
||||||
|
|
||||||
const struct option_type_info option_types[] = {
|
const struct option_type_info option_types[] = {
|
||||||
{ N_("Boolean"), bool_cmd, num_rd, num_wr, NULL, num_set, NULL, N_("[0|1]") },
|
{ N_("Boolean"), bool_cmd, num_rd, num_wr, NULL, num_set, N_("[0|1]") },
|
||||||
{ N_("Integer"), gen_cmd, num_rd, num_wr, NULL, num_set, NULL, N_("<num>") },
|
{ N_("Integer"), gen_cmd, num_rd, num_wr, NULL, num_set, N_("<num>") },
|
||||||
{ N_("Longint"), gen_cmd, num_rd, long_wr, NULL, long_set, NULL, N_("<num>") },
|
{ N_("Longint"), gen_cmd, num_rd, long_wr, NULL, long_set, N_("<num>") },
|
||||||
{ N_("String"), gen_cmd, str_rd, str_wr, str_dup, str_set, NULL, N_("<str>") },
|
{ N_("String"), gen_cmd, str_rd, str_wr, str_dup, str_set, N_("<str>") },
|
||||||
|
|
||||||
{ N_("Codepage"), gen_cmd, str_rd, cp_wr, NULL, cp_set, NULL, N_("<codepage>") },
|
{ N_("Codepage"), gen_cmd, str_rd, cp_wr, NULL, cp_set, N_("<codepage>") },
|
||||||
{ N_("Language"), gen_cmd, str_rd, lang_wr, NULL, lang_set, NULL, N_("<language>") },
|
{ N_("Language"), gen_cmd, str_rd, lang_wr, NULL, lang_set, N_("<language>") },
|
||||||
{ N_("Color"), gen_cmd, str_rd, color_wr, NULL, color_set, NULL, N_("<color|#rrggbb>") },
|
{ N_("Color"), gen_cmd, str_rd, color_wr, NULL, color_set, N_("<color|#rrggbb>") },
|
||||||
|
|
||||||
{ N_("Special"), exec_cmd, NULL, NULL, NULL, NULL, NULL, "" },
|
{ N_("Special"), exec_cmd, NULL, NULL, NULL, NULL, "" },
|
||||||
|
|
||||||
{ N_("Alias"), redir_cmd, redir_rd, redir_wr, NULL, redir_set, redir_add, "" },
|
{ N_("Alias"), redir_cmd, redir_rd, redir_wr, NULL, redir_set, "" },
|
||||||
|
|
||||||
/* tree */
|
/* tree */
|
||||||
{ N_("Folder"), NULL, NULL, NULL, tree_dup, NULL, NULL, "" },
|
{ N_("Folder"), NULL, NULL, NULL, tree_dup, NULL, "" },
|
||||||
};
|
};
|
||||||
|
|
||||||
unsigned char *
|
unsigned char *
|
||||||
|
@ -11,7 +11,6 @@ struct option_type_info {
|
|||||||
void (*write)(struct option *, struct string *);
|
void (*write)(struct option *, struct string *);
|
||||||
void (*dup)(struct option *, struct option *);
|
void (*dup)(struct option *, struct option *);
|
||||||
int (*set)(struct option *, unsigned char *);
|
int (*set)(struct option *, unsigned char *);
|
||||||
int (*add)(struct option *, unsigned char *);
|
|
||||||
unsigned char *help_str;
|
unsigned char *help_str;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user