remove unused functions

This commit is contained in:
Sébastien Loriot 2022-04-06 11:13:24 +02:00
parent a20c807e4e
commit dfadf57c8e
1 changed files with 0 additions and 15 deletions

View File

@ -102,8 +102,6 @@ public:
T& access(chained_map_item p, std::size_t x);
T& access(std::size_t x);
chained_map_item lookup(std::size_t x) const;
chained_map_item first_item() const;
chained_map_item next_item(chained_map_item it) const;
void statistics() const;
};
@ -326,19 +324,6 @@ chained_map<T, Allocator>::lookup(std::size_t x) const
}
template <typename T, typename Allocator>
typename chained_map<T, Allocator>::chained_map_item
chained_map<T, Allocator>::first_item() const
{ return next_item(table); }
template <typename T, typename Allocator>
typename chained_map<T, Allocator>::chained_map_item
chained_map<T, Allocator>::next_item(chained_map_item it) const
{ if (it == 0) return 0;
do it++; while (it < table + table_size && it->k == nullptrKEY);
return (it < free ? it : 0);
}
template <typename T, typename Allocator>
void chained_map<T, Allocator>::statistics() const
{ std::cout << "table_size: " << table_size <<"\n";