From 54e96153a57c43da26588acc2dd5d5f29763d124 Mon Sep 17 00:00:00 2001 From: Alex Merry Date: Fri, 21 Mar 2014 18:00:11 +0000 Subject: Remove old kdelibs4 code All this ifdef'd-out code just makes it hard to see what's going on. REVIEW: 116962 --- src/core/kconfig.cpp | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'src') diff --git a/src/core/kconfig.cpp b/src/core/kconfig.cpp index 5b51cce8..5a4a083d 100644 --- a/src/core/kconfig.cpp +++ b/src/core/kconfig.cpp @@ -95,11 +95,7 @@ KConfigPrivate::KConfigPrivate(KConfig::OpenFlags flags, // mappingsRegistered = true; // } -#if 0 // KDE4 code - setLocale(KLocale::global()->language()); -#else setLocale(QLocale::system().name()); -#endif } bool KConfigPrivate::lockLocal() @@ -178,18 +174,6 @@ QString KConfigPrivate::expandString(const QString &value) QString cmd = aValue.mid(nDollarPos + 2, nEndPos - nDollarPos - 3); QString result; -#if 0 // Removed in KDE Frameworks 5. No such concept anymore. Just set your PATH. - QByteArray oldpath = qgetenv("PATH"); - QByteArray newpath; - if (KComponentData::hasMainComponent()) { - newpath = QFile::encodeName(KGlobal::dirs()->resourceDirs("exe").join(QChar::fromLatin1(KPATH_SEPARATOR))); - if (!newpath.isEmpty() && !oldpath.isEmpty()) { - newpath += KPATH_SEPARATOR; - } - } - newpath += oldpath; - qputenv("PATH", newpath); -#endif // FIXME: wince does not have pipes #ifndef _WIN32_WCE @@ -199,9 +183,6 @@ QString KConfigPrivate::expandString(const QString &value) result = ts.readAll().trimmed(); pclose(fs); } -#endif -#if 0 // Removed in KDE Frameworks 5, see above. - qputenv("PATH", oldpath); #endif aValue.replace(nDollarPos, nEndPos - nDollarPos, result); nDollarPos += result.length(); @@ -502,11 +483,7 @@ void KConfig::checkUpdate(const QString &id, const QString &updateFile) const QString cfg_id = updateFile + QLatin1Char(':') + id; const QStringList ids = cg.readEntry("update_info", QStringList()); if (!ids.contains(cfg_id)) { -#if 0 - KToolInvocation::kdeinitExecWait(QString::fromLatin1("kconf_update"), QStringList() << QString::fromLatin1("--check") << updateFile); -#else QProcess::execute(QString::fromLatin1("kconf_update"), QStringList() << QString::fromLatin1("--check") << updateFile); -#endif reparseConfiguration(); } } -- cgit v1.2.1