Commit 485a123f authored by Steven Murray's avatar Steven Murray
Browse files

Removed LabelSessionConfig::createFromCastorConf()

parent 415b99d6
...@@ -31,25 +31,3 @@ castor::tape::tapeserver::daemon::LabelSessionConfig::LabelSessionConfig() ...@@ -31,25 +31,3 @@ castor::tape::tapeserver::daemon::LabelSessionConfig::LabelSessionConfig()
throw(): throw():
useLbp(false) { useLbp(false) {
} }
//------------------------------------------------------------------------------
// createFromCastorConf
//------------------------------------------------------------------------------
castor::tape::tapeserver::daemon::LabelSessionConfig
castor::tape::tapeserver::daemon::LabelSessionConfig::createFromCastorConf(
cta::log::Logger *const log) {
common::CastorConfiguration &castorConf =
common::CastorConfiguration::getConfig();
LabelSessionConfig config;
const std::string useLBP = castorConf.getConfEntString(
"TapeServer", "UseLogicalBlockProtection", "no");
if (!strcasecmp(useLBP.c_str(), "yes") || !strcmp(useLBP.c_str(), "1")) {
config.useLbp = true;
} else {
config.useLbp = false;
}
return config;
}
...@@ -49,16 +49,6 @@ struct LabelSessionConfig { ...@@ -49,16 +49,6 @@ struct LabelSessionConfig {
*/ */
LabelSessionConfig() throw(); LabelSessionConfig() throw();
/**
* Returns a configuration structure based on the contents of
* /etc/castor/castor.conf and compile-time constants.
*
* @param log pointer to NULL or an optional logger object.
* @return The configuration structure.
*/
static LabelSessionConfig createFromCastorConf(
cta::log::Logger *const log = NULL);
}; // LabelSessionConfig }; // LabelSessionConfig
} // namespace daemon } // namespace daemon
......
Supports Markdown
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