Commit 25319ddf authored by Tobias Hunger's avatar Tobias Hunger
Browse files

SettingsAccessor: Remove some code that is no longer needed.



Change-Id: Ib250ed590736b57b7898547303ae6e481e688322
Reviewed-by: default avatarDaniel Teske <daniel.teske@digia.com>
parent acda3403
......@@ -452,13 +452,11 @@ static QVariantMap processHandlerNodes(const HandlerNode &node, const QVariantMa
SettingsAccessor::SettingsAccessor(Project *project) :
m_firstVersion(-1),
m_lastVersion(-1),
m_userFileAcessor(QByteArray("qtcUserFileName"),
QLatin1String(".user"),
m_userFileAcessor(QLatin1String(".user"),
QString::fromLocal8Bit(qgetenv("QTC_EXTENSION")),
true,
this),
m_sharedFileAcessor(QByteArray("qtcSharedFileName"),
QLatin1String(".shared"),
m_sharedFileAcessor(QLatin1String(".shared"),
QString::fromLocal8Bit(qgetenv("QTC_SHARED_EXTENSION")),
false,
this),
......@@ -909,13 +907,11 @@ bool SettingsAccessor::SettingsData::isValid() const
static const char VERSION_KEY[] = "ProjectExplorer.Project.Updater.FileVersion";
static const char ENVIRONMENT_ID_KEY[] = "ProjectExplorer.Project.Updater.EnvironmentId";
SettingsAccessor::FileAccessor::FileAccessor(const QByteArray &id,
const QString &defaultSuffix,
SettingsAccessor::FileAccessor::FileAccessor(const QString &defaultSuffix,
const QString &environmentSuffix,
bool envSpecific,
SettingsAccessor *accessor)
: m_id(id)
, m_environmentSpecific(envSpecific)
: m_environmentSpecific(envSpecific)
, m_accessor(accessor)
, m_writer(0)
{
......
......@@ -96,8 +96,7 @@ private:
class FileAccessor
{
public:
FileAccessor(const QByteArray &id,
const QString &defaultSuffix,
FileAccessor(const QString &defaultSuffix,
const QString &environmentSuffix,
bool envSpecific,
SettingsAccessor *accessor);
......@@ -107,12 +106,10 @@ private:
bool writeFile(const SettingsData *settings) const;
QString suffix() const { return m_suffix; }
QByteArray id() const { return m_id; }
private:
void assignSuffix(const QString &defaultSuffix, const QString &environmentSuffix);
QByteArray m_id;
QString m_suffix;
bool m_environmentSpecific;
SettingsAccessor *m_accessor;
......
Markdown is supported
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