Core: remove some unused context handling functions

Change-Id: Ib92a2044ff84108416d315aaf68602b2dd41c7eb
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
hjk
2013-01-11 13:33:31 +01:00
parent 52dc1c9ec9
commit fd1302995c
6 changed files with 0 additions and 19 deletions

View File

@@ -445,11 +445,6 @@ bool ActionManager::isPresentationModeEnabled()
return m_instance->d->m_presentationLabel; return m_instance->d->m_presentationLabel;
} }
bool ActionManager::hasContext(int context)
{
return m_instance->d->m_context.contains(context);
}
/*! /*!
\class ActionManagerPrivate \class ActionManagerPrivate
\inheaderfile actionmanager_p.h \inheaderfile actionmanager_p.h

View File

@@ -76,8 +76,6 @@ public:
static void setPresentationModeEnabled(bool enabled); static void setPresentationModeEnabled(bool enabled);
static bool isPresentationModeEnabled(); static bool isPresentationModeEnabled();
static bool hasContext(int context);
signals: signals:
void commandListChanged(); void commandListChanged();
void commandAdded(const QString &id); void commandAdded(const QString &id);

View File

@@ -532,11 +532,6 @@ void ICore::updateAdditionalContexts(const Context &remove, const Context &add)
m_mainwindow->updateAdditionalContexts(remove, add); m_mainwindow->updateAdditionalContexts(remove, add);
} }
bool ICore::hasContext(int context)
{
return m_mainwindow->hasContext(context);
}
void ICore::addContextObject(IContext *context) void ICore::addContextObject(IContext *context)
{ {
m_mainwindow->addContextObject(context); m_mainwindow->addContextObject(context);

View File

@@ -117,7 +117,6 @@ public:
// Adds and removes additional active contexts, these contexts are appended // Adds and removes additional active contexts, these contexts are appended
// to the currently active contexts. // to the currently active contexts.
static void updateAdditionalContexts(const Context &remove, const Context &add); static void updateAdditionalContexts(const Context &remove, const Context &add);
static bool hasContext(int context);
static void addContextObject(IContext *context); static void addContextObject(IContext *context);
static void removeContextObject(IContext *context); static void removeContextObject(IContext *context);

View File

@@ -1226,11 +1226,6 @@ void MainWindow::updateAdditionalContexts(const Context &remove, const Context &
updateContext(); updateContext();
} }
bool MainWindow::hasContext(int context) const
{
return ActionManager::hasContext(context);
}
void MainWindow::updateContext() void MainWindow::updateContext()
{ {
Context contexts; Context contexts;

View File

@@ -115,7 +115,6 @@ public:
QStatusBar *statusBar() const; QStatusBar *statusBar() const;
void updateAdditionalContexts(const Context &remove, const Context &add); void updateAdditionalContexts(const Context &remove, const Context &add);
bool hasContext(int context) const;
void setSuppressNavigationWidget(bool suppress); void setSuppressNavigationWidget(bool suppress);