Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
46315744
Commit
46315744
authored
Feb 24, 2015
by
Michal Marek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kconfig: Remove dead code
Signed-off-by:
Michal Marek
<
mmarek@suse.cz
>
parent
70529b1a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
39 deletions
+0
-39
scripts/kconfig/expr.c
scripts/kconfig/expr.c
+0
-4
scripts/kconfig/gconf.c
scripts/kconfig/gconf.c
+0
-24
scripts/kconfig/lkc.h
scripts/kconfig/lkc.h
+0
-1
scripts/kconfig/util.c
scripts/kconfig/util.c
+0
-10
No files found.
scripts/kconfig/expr.c
View file @
46315744
...
@@ -978,9 +978,6 @@ tristate expr_calc_value(struct expr *e)
...
@@ -978,9 +978,6 @@ tristate expr_calc_value(struct expr *e)
int
expr_compare_type
(
enum
expr_type
t1
,
enum
expr_type
t2
)
int
expr_compare_type
(
enum
expr_type
t1
,
enum
expr_type
t2
)
{
{
#if 0
return 1;
#else
if
(
t1
==
t2
)
if
(
t1
==
t2
)
return
0
;
return
0
;
switch
(
t1
)
{
switch
(
t1
)
{
...
@@ -1005,7 +1002,6 @@ int expr_compare_type(enum expr_type t1, enum expr_type t2)
...
@@ -1005,7 +1002,6 @@ int expr_compare_type(enum expr_type t1, enum expr_type t2)
}
}
printf
(
"[%dgt%d?]"
,
t1
,
t2
);
printf
(
"[%dgt%d?]"
,
t1
,
t2
);
return
0
;
return
0
;
#endif
}
}
static
inline
struct
expr
*
static
inline
struct
expr
*
...
...
scripts/kconfig/gconf.c
View file @
46315744
...
@@ -169,14 +169,6 @@ void init_main_window(const gchar * glade_file)
...
@@ -169,14 +169,6 @@ void init_main_window(const gchar * glade_file)
style
=
gtk_widget_get_style
(
main_wnd
);
style
=
gtk_widget_get_style
(
main_wnd
);
widget
=
glade_xml_get_widget
(
xml
,
"toolbar1"
);
widget
=
glade_xml_get_widget
(
xml
,
"toolbar1"
);
#if 0 /* Use stock Gtk icons instead */
replace_button_icon(xml, main_wnd->window, style,
"button1", (gchar **) xpm_back);
replace_button_icon(xml, main_wnd->window, style,
"button2", (gchar **) xpm_load);
replace_button_icon(xml, main_wnd->window, style,
"button3", (gchar **) xpm_save);
#endif
replace_button_icon
(
xml
,
main_wnd
->
window
,
style
,
replace_button_icon
(
xml
,
main_wnd
->
window
,
style
,
"button4"
,
(
gchar
**
)
xpm_single_view
);
"button4"
,
(
gchar
**
)
xpm_single_view
);
replace_button_icon
(
xml
,
main_wnd
->
window
,
style
,
replace_button_icon
(
xml
,
main_wnd
->
window
,
style
,
...
@@ -184,22 +176,6 @@ void init_main_window(const gchar * glade_file)
...
@@ -184,22 +176,6 @@ void init_main_window(const gchar * glade_file)
replace_button_icon
(
xml
,
main_wnd
->
window
,
style
,
replace_button_icon
(
xml
,
main_wnd
->
window
,
style
,
"button6"
,
(
gchar
**
)
xpm_tree_view
);
"button6"
,
(
gchar
**
)
xpm_tree_view
);
#if 0
switch (view_mode) {
case SINGLE_VIEW:
widget = glade_xml_get_widget(xml, "button4");
g_signal_emit_by_name(widget, "clicked");
break;
case SPLIT_VIEW:
widget = glade_xml_get_widget(xml, "button5");
g_signal_emit_by_name(widget, "clicked");
break;
case FULL_VIEW:
widget = glade_xml_get_widget(xml, "button6");
g_signal_emit_by_name(widget, "clicked");
break;
}
#endif
txtbuf
=
gtk_text_view_get_buffer
(
GTK_TEXT_VIEW
(
text_w
));
txtbuf
=
gtk_text_view_get_buffer
(
GTK_TEXT_VIEW
(
text_w
));
tag1
=
gtk_text_buffer_create_tag
(
txtbuf
,
"mytag1"
,
tag1
=
gtk_text_buffer_create_tag
(
txtbuf
,
"mytag1"
,
"foreground"
,
"red"
,
"foreground"
,
"red"
,
...
...
scripts/kconfig/lkc.h
View file @
46315744
...
@@ -135,7 +135,6 @@ struct gstr {
...
@@ -135,7 +135,6 @@ struct gstr {
int
max_width
;
int
max_width
;
};
};
struct
gstr
str_new
(
void
);
struct
gstr
str_new
(
void
);
struct
gstr
str_assign
(
const
char
*
s
);
void
str_free
(
struct
gstr
*
gs
);
void
str_free
(
struct
gstr
*
gs
);
void
str_append
(
struct
gstr
*
gs
,
const
char
*
s
);
void
str_append
(
struct
gstr
*
gs
,
const
char
*
s
);
void
str_printf
(
struct
gstr
*
gs
,
const
char
*
fmt
,
...);
void
str_printf
(
struct
gstr
*
gs
,
const
char
*
fmt
,
...);
...
...
scripts/kconfig/util.c
View file @
46315744
...
@@ -88,16 +88,6 @@ struct gstr str_new(void)
...
@@ -88,16 +88,6 @@ struct gstr str_new(void)
return
gs
;
return
gs
;
}
}
/* Allocate and assign growable string */
struct
gstr
str_assign
(
const
char
*
s
)
{
struct
gstr
gs
;
gs
.
s
=
strdup
(
s
);
gs
.
len
=
strlen
(
s
)
+
1
;
gs
.
max_width
=
0
;
return
gs
;
}
/* Free storage for growable string */
/* Free storage for growable string */
void
str_free
(
struct
gstr
*
gs
)
void
str_free
(
struct
gstr
*
gs
)
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment