diff options
| author | Alex Merry <alex.merry@kde.org> | 2014-03-21 18:00:11 +0000 | 
|---|---|---|
| committer | Alex Merry <alex.merry@kde.org> | 2014-03-24 11:22:31 +0000 | 
| commit | 54e96153a57c43da26588acc2dd5d5f29763d124 (patch) | |
| tree | 094b03b747faf54cf725dc4547ecbde6942ea22d /src | |
| parent | c018f617f1f0eff18bc144ff05f64ff95f07f573 (diff) | |
| download | kconfig-54e96153a57c43da26588acc2dd5d5f29763d124.tar.gz kconfig-54e96153a57c43da26588acc2dd5d5f29763d124.tar.bz2 | |
Remove old kdelibs4 code
All this ifdef'd-out code just makes it hard to see what's going on.
REVIEW: 116962
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/kconfig.cpp | 23 | 
1 files changed, 0 insertions, 23 deletions
| 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 @@ -200,9 +184,6 @@ QString KConfigPrivate::expandString(const QString &value)                  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();          } else if (aValue[nDollarPos + 1] != QLatin1Char('$')) { @@ -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();      }  } | 
