refs #471 tweaked project

* removed unused functions
* typos
This commit is contained in:
Klaus Basan
2015-11-02 19:27:13 +01:00
committed by Mathew Sutcliffe
parent 81f7bde310
commit ace3b60062
2 changed files with 5 additions and 28 deletions

View File

@@ -233,17 +233,6 @@ namespace BlackMisc
return QProcessEnvironment::systemEnvironment().value(envVarDevelopment());
}
const QString &CProject::envDevelopmentSetup()
{
static const QString s("SWIFT_DEV_SETUP");
return s;
}
QString CProject::envDevelopmentSetupValue()
{
return QProcessEnvironment::systemEnvironment().value(envDevelopmentSetup());
}
const QString &CProject::envVarPrivateSetupDir()
{
static const QString s("SWIFT_SETUP_DIR");
@@ -317,11 +306,7 @@ namespace BlackMisc
QString CProject::getEnvironmentVariables(const QString &separator)
{
QString e(envDevelopmentSetup());
e = e.append(": ").append(envDevelopmentSetupValue());
e = e.append(separator);
e = e.append(envVarDevelopment());
QString e(envVarDevelopment());
e = e.append(": ").append(envVarDevelopmentValue());
e = e.append(separator);
@@ -390,6 +375,7 @@ namespace BlackMisc
str.append(compiledWithInfo(false));
return str;
}
} // ns
#undef BLACK_VERSION_STR

View File

@@ -140,23 +140,14 @@ namespace BlackMisc
static const QString &envVarDevelopment();
//! Value
//! //! \value true|false
//! \return true|false
static QString envVarDevelopmentValue();
//! Read data from productive or development setupnding on dev. environment yes/no
static const QString &envDevelopmentSetup();
//! Value
//! \value true|false
//! \remarks If this is set, the explicit value will be used.
//! If not set, default will be used depe
static QString envDevelopmentSetupValue();
//! Environment variable private resources
//! Environment variable private resources directory
static const QString &envVarPrivateSetupDir();
//! Value
//! \value directory path
//! \return directory path
static QString envVarPrivateSetupDirValue();
};
} // ns