Delete unused function

This commit is contained in:
King_DuckZ 2021-03-27 02:54:21 +01:00
parent 4216c86c09
commit fe7c5c5bc1

View file

@ -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");
}
}
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
int main (int argc, char* argv[]) {