Commit 94a17934 authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[2833] cleanup: removed now-unnecessary variable

parent 766d7f47
...@@ -109,9 +109,6 @@ ConfigurableClientList::configure(const ConstElementPtr& config, ...@@ -109,9 +109,6 @@ ConfigurableClientList::configure(const ConstElementPtr& config,
if (paramConf == ConstElementPtr()) { if (paramConf == ConstElementPtr()) {
paramConf.reset(new NullElement()); paramConf.reset(new NullElement());
} }
const bool want_cache(allow_cache &&
dconf->contains("cache-enable") &&
dconf->get("cache-enable")->boolValue());
// Get the name (either explicit, or guess) // Get the name (either explicit, or guess)
const ConstElementPtr name_elem(dconf->get("name")); const ConstElementPtr name_elem(dconf->get("name"));
const string name(name_elem ? name_elem->stringValue() : type); const string name(name_elem ? name_elem->stringValue() : type);
...@@ -147,7 +144,7 @@ ConfigurableClientList::configure(const ConstElementPtr& config, ...@@ -147,7 +144,7 @@ ConfigurableClientList::configure(const ConstElementPtr& config,
rrclass_, ztable_segment, rrclass_, ztable_segment,
name)); name));
if (want_cache) { if (cache_conf.isEnabled()) {
// List the zones we are loading // List the zones we are loading
vector<string> zones_origins; vector<string> zones_origins;
if (type == "MasterFiles") { if (type == "MasterFiles") {
......
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