From ad599806906d17a50b19e7d24bc26fb0289a073b Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Fri, 19 Oct 2018 01:59:33 +0200 Subject: Remove unused filter-list.h header. --- src/ui/widget/layer-selector.cpp | 1 - src/util/CMakeLists.txt | 1 - src/util/filter-list.h | 65 ---------------------------------------- 3 files changed, 67 deletions(-) delete mode 100644 src/util/filter-list.h (limited to 'src') diff --git a/src/ui/widget/layer-selector.cpp b/src/ui/widget/layer-selector.cpp index 2f8e1220a..91f10817e 100644 --- a/src/ui/widget/layer-selector.cpp +++ b/src/ui/widget/layer-selector.cpp @@ -26,7 +26,6 @@ #include "layer-manager.h" #include "ui/icon-names.h" #include "ui/util.h" -#include "util/filter-list.h" #include "util/reverse-list.h" #include "verbs.h" #include "xml/node-event-vector.h" 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 - * - * 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 -inline typename Traits::ListCopy::ResultList -filter_list(UnaryPredicate p, InputIterator start, InputIterator end) { - typedef typename Traits::ListCopy::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 -inline typename Traits::ListCopy >::ResultList -filter_list(UnaryPredicate p, List const &list) { - return filter_list(p, list, List()); -} - -} - -} - -#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 : -- cgit v1.2.3