summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-10-18 23:59:33 +0000
committerMarc Jeanmougin <marcjeanmougin@free.fr>2018-10-19 09:40:01 +0000
commitad599806906d17a50b19e7d24bc26fb0289a073b (patch)
tree2d5448ea893de70773385186162700383f058e63 /src/util
parentRemove unused map-list.h header. (diff)
downloadinkscape-ad599806906d17a50b19e7d24bc26fb0289a073b.tar.gz
inkscape-ad599806906d17a50b19e7d24bc26fb0289a073b.zip
Remove unused filter-list.h header.
Diffstat (limited to 'src/util')
-rw-r--r--src/util/CMakeLists.txt1
-rw-r--r--src/util/filter-list.h65
2 files changed, 0 insertions, 66 deletions
diff --git a/src/util/CMakeLists.txt b/src/util/CMakeLists.txt
index 8a36347db..faa452d13 100644
--- a/src/util/CMakeLists.txt
+++ b/src/util/CMakeLists.txt
@@ -15,7 +15,6 @@ set(util_SRC
ege-tags.h
enums.h
expression-evaluator.h
- filter-list.h
find-if-before.h
find-last-if.h
fixed_point.h
diff --git a/src/util/filter-list.h b/src/util/filter-list.h
deleted file mode 100644
index cf086df4a..000000000
--- a/src/util/filter-list.h
+++ /dev/null
@@ -1,65 +0,0 @@
-/*
- * Inkscape::Util::filter_list - select a subset of the items in a list
- *
- * Authors:
- * MenTaLguY <mental@rydia.net>
- *
- * Copyright (C) 2004 MenTaLguY
- *
- * Released under GNU GPL, read the file 'COPYING' for more information
- */
-
-#ifndef SEEN_INKSCAPE_UTIL_FILTER_LIST_H
-#define SEEN_INKSCAPE_UTIL_FILTER_LIST_H
-
-#include "util/list.h"
-#include "util/list-copy.h"
-
-namespace Inkscape {
-
-namespace Util {
-
-template <typename InputIterator, typename UnaryPredicate>
-inline typename Traits::ListCopy<InputIterator>::ResultList
-filter_list(UnaryPredicate p, InputIterator start, InputIterator end) {
- typedef typename Traits::ListCopy<InputIterator>::ResultList ResultList;
- ResultList head;
- ResultList tail;
- while ( start != end && !p(*start) ) {
- ++start;
- }
- if ( start != end ) {
- head = tail = ResultList(*start);
- ++start;
- }
- while ( start != end ) {
- if (p(*start)) {
- set_rest(tail, ResultList(*start));
- ++tail;
- }
- ++start;
- }
- return head;
-}
-
-template <typename T, typename UnaryPredicate>
-inline typename Traits::ListCopy<List<T> >::ResultList
-filter_list(UnaryPredicate p, List<T> const &list) {
- return filter_list(p, list, List<T>());
-}
-
-}
-
-}
-
-#endif
-/*
- Local Variables:
- mode:c++
- c-file-style:"stroustrup"
- c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
- indent-tabs-mode:nil
- fill-column:99
- End:
-*/
-// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :