summaryrefslogtreecommitdiff
path: root/src/cnode/cnode.cpp
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2010-11-10 20:17:56 -0800
committerAn-Cheng Huang <ancheng@vyatta.com>2010-11-10 20:17:56 -0800
commit91b4c34c1fcc19ecf16f53ce5c097376b9175233 (patch)
treec3f8838b3b3a445bf32f06ffd3faf833c5b1456c /src/cnode/cnode.cpp
parentd18cfa3bfb5be81990db3cea9f3f502be237d945 (diff)
downloadvyatta-cfg-91b4c34c1fcc19ecf16f53ce5c097376b9175233.tar.gz
vyatta-cfg-91b4c34c1fcc19ecf16f53ce5c097376b9175233.zip
consolidate similar logic and simplify code
Diffstat (limited to 'src/cnode/cnode.cpp')
-rw-r--r--src/cnode/cnode.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/cnode/cnode.cpp b/src/cnode/cnode.cpp
index 4ebbb2b..2948a14 100644
--- a/src/cnode/cnode.cpp
+++ b/src/cnode/cnode.cpp
@@ -111,13 +111,7 @@ CfgNode::CfgNode(Cstore& cstore, vector<string>& path_comps,
for (size_t i = 0; i < cnodes.size(); i++) {
path_comps.push_back(cnodes[i]);
CfgNode *cn = new CfgNode(cstore, path_comps, active, recursive);
- if (_is_tag && !_is_value) {
- // tag node
- _tag_values.push_back(cn);
- } else {
- // intermediate node or tag value
- _child_nodes.push_back(cn);
- }
+ _child_nodes.push_back(cn);
path_comps.pop_back();
}
}