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;
}
bool ActionManager::hasContext(int context)
{
return m_instance->d->m_context.contains(context);
}
/*!
\class ActionManagerPrivate
\inheaderfile actionmanager_p.h

View File

@@ -76,8 +76,6 @@ public:
static void setPresentationModeEnabled(bool enabled);
static bool isPresentationModeEnabled();
static bool hasContext(int context);
signals:
void commandListChanged();
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);
}
bool ICore::hasContext(int context)
{
return m_mainwindow->hasContext(context);
}
void ICore::addContextObject(IContext *context)
{
m_mainwindow->addContextObject(context);

View File

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

View File

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

View File

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