Skip to content

Commit

Permalink
xconfig: remove unused function
Browse files Browse the repository at this point in the history
Remove ConfigInfoView::setSource().

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
  • Loading branch information
Li Zefan authored and Michal Marek committed Jun 2, 2010
1 parent c1f96f0 commit 120d63e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 29 deletions.
28 changes: 0 additions & 28 deletions scripts/kconfig/qconf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -963,34 +963,6 @@ void ConfigInfoView::setInfo(struct menu *m)
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)
{
QString str;
Expand Down
1 change: 0 additions & 1 deletion scripts/kconfig/qconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,6 @@ class ConfigInfoView : public QTextBrowser {
public slots:
void setInfo(struct menu *menu);
void saveSettings(void);
void setSource(const QString& name);
void setShowDebug(bool);

signals:
Expand Down

0 comments on commit 120d63e

Please sign in to comment.