Commit 120d63e6 authored by Li Zefan's avatar Li Zefan Committed by Michal Marek

xconfig: remove unused function

Remove ConfigInfoView::setSource().
Signed-off-by: default avatarLi Zefan <lizf@cn.fujitsu.com>
Signed-off-by: default avatarMichal Marek <mmarek@suse.cz>
parent c1f96f09
...@@ -963,34 +963,6 @@ void ConfigInfoView::setInfo(struct menu *m) ...@@ -963,34 +963,6 @@ void ConfigInfoView::setInfo(struct menu *m)
menuInfo(); menuInfo();
} }
void ConfigInfoView::setSource(const QString& name)
{
const char *p = name.latin1();
menu = NULL;
sym = NULL;
switch (p[0]) {
case 'm':
struct menu *m;
if (sscanf(p, "m%p", &m) == 1 && menu != m) {
menu = m;
menuInfo();
emit menuSelected(menu);
}
break;
case 's':
struct symbol *s;
if (sscanf(p, "s%p", &s) == 1 && sym != s) {
sym = s;
symbolInfo();
}
break;
}
}
void ConfigInfoView::symbolInfo(void) void ConfigInfoView::symbolInfo(void)
{ {
QString str; QString str;
......
...@@ -254,7 +254,6 @@ class ConfigInfoView : public QTextBrowser { ...@@ -254,7 +254,6 @@ class ConfigInfoView : public QTextBrowser {
public slots: public slots:
void setInfo(struct menu *menu); void setInfo(struct menu *menu);
void saveSettings(void); void saveSettings(void);
void setSource(const QString& name);
void setShowDebug(bool); void setShowDebug(bool);
signals: signals:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment