diff options
author | Michal Marek <mmarek@suse.cz> | 2015-02-24 10:32:09 -0500 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2015-02-25 09:00:16 -0500 |
commit | 463157444e377bf9b279101b1f16a94c4648c03a (patch) | |
tree | 91d6a75fb0d7a366dac5047e11af25b6f0b6c0cc /scripts/kconfig | |
parent | 70529b1a1784503169416df19ce3d68746401340 (diff) |
kconfig: Remove dead code
Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'scripts/kconfig')
-rw-r--r-- | scripts/kconfig/expr.c | 4 | ||||
-rw-r--r-- | scripts/kconfig/gconf.c | 24 | ||||
-rw-r--r-- | scripts/kconfig/lkc.h | 1 | ||||
-rw-r--r-- | scripts/kconfig/util.c | 10 |
4 files changed, 0 insertions, 39 deletions
diff --git a/scripts/kconfig/expr.c b/scripts/kconfig/expr.c index d6626521f9b9..4b4cf8e21314 100644 --- a/scripts/kconfig/expr.c +++ b/scripts/kconfig/expr.c | |||
@@ -978,9 +978,6 @@ tristate expr_calc_value(struct expr *e) | |||
978 | 978 | ||
979 | int expr_compare_type(enum expr_type t1, enum expr_type t2) | 979 | int expr_compare_type(enum expr_type t1, enum expr_type t2) |
980 | { | 980 | { |
981 | #if 0 | ||
982 | return 1; | ||
983 | #else | ||
984 | if (t1 == t2) | 981 | if (t1 == t2) |
985 | return 0; | 982 | return 0; |
986 | switch (t1) { | 983 | switch (t1) { |
@@ -1005,7 +1002,6 @@ int expr_compare_type(enum expr_type t1, enum expr_type t2) | |||
1005 | } | 1002 | } |
1006 | printf("[%dgt%d?]", t1, t2); | 1003 | printf("[%dgt%d?]", t1, t2); |
1007 | return 0; | 1004 | return 0; |
1008 | #endif | ||
1009 | } | 1005 | } |
1010 | 1006 | ||
1011 | static inline struct expr * | 1007 | static inline struct expr * |
diff --git a/scripts/kconfig/gconf.c b/scripts/kconfig/gconf.c index d0a35b21f308..344b9e340ecb 100644 --- a/scripts/kconfig/gconf.c +++ b/scripts/kconfig/gconf.c | |||
@@ -169,14 +169,6 @@ void init_main_window(const gchar * glade_file) | |||
169 | style = gtk_widget_get_style(main_wnd); | 169 | style = gtk_widget_get_style(main_wnd); |
170 | widget = glade_xml_get_widget(xml, "toolbar1"); | 170 | widget = glade_xml_get_widget(xml, "toolbar1"); |
171 | 171 | ||
172 | #if 0 /* Use stock Gtk icons instead */ | ||
173 | replace_button_icon(xml, main_wnd->window, style, | ||
174 | "button1", (gchar **) xpm_back); | ||
175 | replace_button_icon(xml, main_wnd->window, style, | ||
176 | "button2", (gchar **) xpm_load); | ||
177 | replace_button_icon(xml, main_wnd->window, style, | ||
178 | "button3", (gchar **) xpm_save); | ||
179 | #endif | ||
180 | replace_button_icon(xml, main_wnd->window, style, | 172 | replace_button_icon(xml, main_wnd->window, style, |
181 | "button4", (gchar **) xpm_single_view); | 173 | "button4", (gchar **) xpm_single_view); |
182 | replace_button_icon(xml, main_wnd->window, style, | 174 | replace_button_icon(xml, main_wnd->window, style, |
@@ -184,22 +176,6 @@ void init_main_window(const gchar * glade_file) | |||
184 | replace_button_icon(xml, main_wnd->window, style, | 176 | replace_button_icon(xml, main_wnd->window, style, |
185 | "button6", (gchar **) xpm_tree_view); | 177 | "button6", (gchar **) xpm_tree_view); |
186 | 178 | ||
187 | #if 0 | ||
188 | switch (view_mode) { | ||
189 | case SINGLE_VIEW: | ||
190 | widget = glade_xml_get_widget(xml, "button4"); | ||
191 | g_signal_emit_by_name(widget, "clicked"); | ||
192 | break; | ||
193 | case SPLIT_VIEW: | ||
194 | widget = glade_xml_get_widget(xml, "button5"); | ||
195 | g_signal_emit_by_name(widget, "clicked"); | ||
196 | break; | ||
197 | case FULL_VIEW: | ||
198 | widget = glade_xml_get_widget(xml, "button6"); | ||
199 | g_signal_emit_by_name(widget, "clicked"); | ||
200 | break; | ||
201 | } | ||
202 | #endif | ||
203 | txtbuf = gtk_text_view_get_buffer(GTK_TEXT_VIEW(text_w)); | 179 | txtbuf = gtk_text_view_get_buffer(GTK_TEXT_VIEW(text_w)); |
204 | tag1 = gtk_text_buffer_create_tag(txtbuf, "mytag1", | 180 | tag1 = gtk_text_buffer_create_tag(txtbuf, "mytag1", |
205 | "foreground", "red", | 181 | "foreground", "red", |
diff --git a/scripts/kconfig/lkc.h b/scripts/kconfig/lkc.h index e418a30bbc40..9f845eab56cb 100644 --- a/scripts/kconfig/lkc.h +++ b/scripts/kconfig/lkc.h | |||
@@ -135,7 +135,6 @@ struct gstr { | |||
135 | int max_width; | 135 | int max_width; |
136 | }; | 136 | }; |
137 | struct gstr str_new(void); | 137 | struct gstr str_new(void); |
138 | struct gstr str_assign(const char *s); | ||
139 | void str_free(struct gstr *gs); | 138 | void str_free(struct gstr *gs); |
140 | void str_append(struct gstr *gs, const char *s); | 139 | void str_append(struct gstr *gs, const char *s); |
141 | void str_printf(struct gstr *gs, const char *fmt, ...); | 140 | void str_printf(struct gstr *gs, const char *fmt, ...); |
diff --git a/scripts/kconfig/util.c b/scripts/kconfig/util.c index 94f9c83e324f..0e76042473cc 100644 --- a/scripts/kconfig/util.c +++ b/scripts/kconfig/util.c | |||
@@ -88,16 +88,6 @@ struct gstr str_new(void) | |||
88 | return gs; | 88 | return gs; |
89 | } | 89 | } |
90 | 90 | ||
91 | /* Allocate and assign growable string */ | ||
92 | struct gstr str_assign(const char *s) | ||
93 | { | ||
94 | struct gstr gs; | ||
95 | gs.s = strdup(s); | ||
96 | gs.len = strlen(s) + 1; | ||
97 | gs.max_width = 0; | ||
98 | return gs; | ||
99 | } | ||
100 | |||
101 | /* Free storage for growable string */ | 91 | /* Free storage for growable string */ |
102 | void str_free(struct gstr *gs) | 92 | void str_free(struct gstr *gs) |
103 | { | 93 | { |