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