From 0ee5609730e9ed66eaf795a963c0576bcaccc710 Mon Sep 17 00:00:00 2001 From: Ulya Trofimovich Date: Tue, 27 Sep 2016 13:21:48 +0100 Subject: [PATCH] Removed unused header. --- re2c/Makefile.am | 1 - re2c/src/util/intersect_sorted.h | 27 --------------------------- 2 files changed, 28 deletions(-) delete mode 100644 re2c/src/util/intersect_sorted.h diff --git a/re2c/Makefile.am b/re2c/Makefile.am index f8561dc5..480320aa 100644 --- a/re2c/Makefile.am +++ b/re2c/Makefile.am @@ -60,7 +60,6 @@ SRC_HDR = \ src/util/forbid_copy.h \ src/util/free_list.h \ src/util/hash32.h \ - src/util/intersect_sorted.h \ src/util/local_increment.h \ src/util/lookup.h \ src/util/ord_hash_set.h \ diff --git a/re2c/src/util/intersect_sorted.h b/re2c/src/util/intersect_sorted.h deleted file mode 100644 index 245a8377..00000000 --- a/re2c/src/util/intersect_sorted.h +++ /dev/null @@ -1,27 +0,0 @@ -#ifndef _RE2C_UTIL_INTERSECT_SORTED_ -#define _RE2C_UTIL_INTERSECT_SORTED_ - -namespace re2c { - -// test intersection of two sorted ranges -template -bool intersect_sorted( - InputIterator1 first1, InputIterator1 last1, - InputIterator2 first2, InputIterator2 last2) -{ - for (;first1 != last1 && first2 != last2;) { - if (*first2 < *first1) { - ++first2; - } else if (*first1 < *first2) { - ++first1; - } else { - return true; - } - } - return false; -} - -} // namespace re2c - -#endif // _RE2C_UTIL_INTERSECT_ - -- 2.40.0