mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 02:42:48 +00:00
kdecore: remove unused KConfig::checkUpdate() method
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
5ea8e459e1
commit
0bf85cb84d
2 changed files with 0 additions and 29 deletions
|
@ -453,17 +453,6 @@ bool KConfig::isDirty() const
|
|||
return d->bDirty;
|
||||
}
|
||||
|
||||
void KConfig::checkUpdate(const QString &id, const QString &updateFile)
|
||||
{
|
||||
const KConfigGroup cg(this, "$Version");
|
||||
const QString cfg_id = updateFile+QLatin1Char(':')+id;
|
||||
const QStringList ids = cg.readEntry("update_info", QStringList());
|
||||
if (!ids.contains(cfg_id)) {
|
||||
KToolInvocation::kdeinitExecWait(QString::fromLatin1("kconf_update"), QStringList() << QString::fromLatin1("--check") << updateFile);
|
||||
reparseConfiguration();
|
||||
}
|
||||
}
|
||||
|
||||
KConfig* KConfig::copyTo(const QString &file, KConfig *config) const
|
||||
{
|
||||
Q_D(const KConfig);
|
||||
|
|
|
@ -225,24 +225,6 @@ public:
|
|||
*/
|
||||
KConfig* copyTo(const QString &file, KConfig *config = 0) const;
|
||||
|
||||
/**
|
||||
* Ensures that the configuration file contains a certain update.
|
||||
*
|
||||
* If the configuration file does not contain the update @p id
|
||||
* as contained in @p updateFile, kconf_update is run to update
|
||||
* the configuration file.
|
||||
*
|
||||
* If you install config update files with critical fixes
|
||||
* you may wish to use this method to verify that a critical
|
||||
* update has indeed been performed to catch the case where
|
||||
* a user restores an old config file from backup that has
|
||||
* not been updated yet.
|
||||
*
|
||||
* @param id the update to check
|
||||
* @param updateFile the file containing the update
|
||||
*/
|
||||
void checkUpdate(const QString &id, const QString &updateFile);
|
||||
|
||||
/**
|
||||
* Updates the state of this object to match the persistent storage.
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue