Skip to content
Snippets Groups Projects
Commit 485a123f authored by Steven Murray's avatar Steven Murray
Browse files

Removed LabelSessionConfig::createFromCastorConf()

parent 415b99d6
No related branches found
No related tags found
No related merge requests found
......@@ -31,25 +31,3 @@ castor::tape::tapeserver::daemon::LabelSessionConfig::LabelSessionConfig()
throw():
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 {
*/
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
} // namespace daemon
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment