Commit 55f14ca3 authored by Kurt Hindenburg's avatar Kurt Hindenburg
Browse files

Remove unused methods shortcuts and findByShortcut

parent cf260af0
......@@ -663,28 +663,6 @@ void ProfileManager::loadFavorites()
_loadedFavorites = true;
}
QList<QKeySequence> ProfileManager::shortcuts()
{
return _shortcuts.keys();
}
Profile::Ptr ProfileManager::findByShortcut(const QKeySequence& shortcut)
{
Q_ASSERT(_shortcuts.contains(shortcut));
if (!_shortcuts[shortcut].profileKey) {
Profile::Ptr key = loadProfile(_shortcuts[shortcut].profilePath);
if (!key) {
_shortcuts.remove(shortcut);
return Profile::Ptr();
}
_shortcuts[shortcut].profileKey = key;
}
return _shortcuts[shortcut].profileKey;
}
QKeySequence ProfileManager::shortcut(Profile::Ptr profile) const
{
QMapIterator<QKeySequence, ShortcutData> iter(_shortcuts);
......
......@@ -194,23 +194,6 @@ public:
/** Returns the shortcut associated with a particular profile. */
QKeySequence shortcut(Profile::Ptr profile) const;
/**
* Returns the list of shortcut key sequences which
* can be used to create new sessions based on
* existing profiles
*
* When one of the shortcuts is activated,
* use findByShortcut() to load the profile associated
* with the shortcut.
*/
QList<QKeySequence> shortcuts();
/**
* Finds and loads the profile associated with
* the specified @p shortcut key sequence and returns a pointer to it.
*/
Profile::Ptr findByShortcut(const QKeySequence &shortcut);
Q_SIGNALS:
/** Emitted when a profile is added to the manager. */
......
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