Delete unused function
This commit is contained in:
parent
4216c86c09
commit
fe7c5c5bc1
1 changed files with 0 additions and 11 deletions
11
main.cpp
11
main.cpp
|
@ -39,17 +39,6 @@ void print_tree (const duck::Node& tree, std::string_view desc={}, std::string i
|
||||||
print_tree(child, child.info->visible_name, indent + "\t");
|
print_tree(child, child.info->visible_name, indent + "\t");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
std::uintmax_t recursive_size (const Node& tree) {
|
|
||||||
std::uintmax_t retval = 0;
|
|
||||||
if (tree.info)
|
|
||||||
retval = tree.info->total_size;
|
|
||||||
|
|
||||||
for (const auto& child : tree.children) {
|
|
||||||
retval += recursive_size(child);
|
|
||||||
}
|
|
||||||
return retval;
|
|
||||||
}
|
|
||||||
} //unnamed namespace
|
} //unnamed namespace
|
||||||
|
|
||||||
int main (int argc, char* argv[]) {
|
int main (int argc, char* argv[]) {
|
||||||
|
|
Loading…
Reference in a new issue