Commit a7173d83 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Remove PimUniqueApplication::activateApplication

It's unused
parent b747b672
Pipeline #180532 passed with stage
in 3 minutes and 24 seconds
......@@ -144,16 +144,6 @@ bool PimUniqueApplication::start(const QStringList &arguments)
return true;
}
bool PimUniqueApplication::activateApplication(const QString &appName, const QStringList &additionalArguments)
{
const QString serviceName = QLatin1String("org.kde.") + appName;
QStringList arguments{appName};
arguments += additionalArguments;
// Start it standalone if not already running (if kontact is running, then this will do nothing)
QDBusConnection::sessionBus().interface()->startService(serviceName);
return callNewInstance(appName, serviceName, KStartupInfo::createNewStartupId(), arguments);
}
// This is called via DBus either by another instance that has just been
// started or by Kontact when the module is activated
int PimUniqueApplication::newInstance(const QByteArray &startupId, const QStringList &arguments, const QString &workingDirectory)
......
......@@ -41,11 +41,6 @@ public:
*/
static bool start(const QStringList &arguments);
/**
* Ensure that another PIM application is running.
*/
static bool activateApplication(const QString &application, const QStringList &additionalArguments = {});
Q_REQUIRED_RESULT QCommandLineParser *cmdArgs() const;
public Q_SLOTS:
......
Supports Markdown
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