summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/util.h b/src/util.h
index 29c5657b..27afdfa2 100644
--- a/src/util.h
+++ b/src/util.h
@@ -65,21 +65,6 @@ extern std::string file_to_string (boost::filesystem::path, uintmax_t max_length
extern std::string private_key_fingerprint (std::string key);
extern xmlpp::Node* find_child (xmlpp::Node const * node, std::string name);
-template <class F, class T>
-std::list<boost::shared_ptr<T> >
-list_of_type (std::list<boost::shared_ptr<F> > const & from)
-{
- std::list<boost::shared_ptr<T> > out;
- for (typename std::list<boost::shared_ptr<F> >::const_iterator i = from.begin(); i != from.end(); ++i) {
- boost::shared_ptr<T> check = boost::dynamic_pointer_cast<T> (*i);
- if (check) {
- out.push_back (check);
- }
- }
-
- return out;
-}
-
}
#endif