Commit 424225c6 authored by Julius Künzel's avatar Julius Künzel 💬
Browse files

[kdenlive_render] Remove unused code

parent 99cbac8e
Pipeline #280517 failed with stage
in 10 minutes and 17 seconds
......@@ -40,7 +40,6 @@ RenderJob::RenderJob(const QString &render, const QString &scenelist, const QStr
#else
, m_kdenlivesocket(new QLocalSocket(this))
#endif
, m_usekuiserver(true)
, m_logfile(m_dest + QStringLiteral(".log"))
, m_erase(scenelist.startsWith(QDir::tempPath()) || scenelist.startsWith(QString("xml:%2").arg(QDir::tempPath())))
, m_seconds(0)
......@@ -209,7 +208,7 @@ void RenderJob::start()
m_startTime = QDateTime::currentDateTime();
#ifndef NODBUS
QDBusConnectionInterface *interface = QDBusConnection::sessionBus().interface();
if ((interface != nullptr) && m_usekuiserver) {
if ((interface != nullptr)) {
if (!interface->isServiceRegistered(QStringLiteral("org.kde.JobViewServer"))) {
qWarning() << "No org.kde.JobViewServer registered, trying to start kuiserver";
if (QProcess::startDetached(QStringLiteral("kuiserver"), QStringList())) {
......@@ -272,12 +271,6 @@ void RenderJob::start()
}
#endif
// Make sure the destination directory is writable
/*QFileInfo checkDestination(QFileInfo(m_dest).absolutePath());
if (!checkDestination.isWritable()) {
slotIsOver(QProcess::NormalExit, false);
}*/
// Because of the logging, we connect to stderr in all cases.
connect(m_renderProcess, &QProcess::readyReadStandardError, this, &RenderJob::receivedStderr);
m_renderProcess->start(m_prog, m_args);
......
......@@ -51,7 +51,6 @@ private:
QDBusInterface *m_jobUiserver;
QDBusInterface *m_kdenliveinterface;
#endif
bool m_usekuiserver;
/** @brief Used to create a temporary file for logging. */
QFile m_logfile;
bool m_erase;
......
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