File: 0003-NOAPI-DETAIL-Remove-range-v3.patch

package info (click to toggle)
seqan3 3.4.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 17,580 kB
  • sloc: cpp: 145,192; sh: 307; xml: 264; javascript: 95; makefile: 70; perl: 29; php: 15
file content (106 lines) | stat: -rw-r--r-- 3,837 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
From 0fc9660ef2c0f42954a1210c312c85107502a546 Mon Sep 17 00:00:00 2001
From: Enrico Seiler <enrico.seiler@hotmail.de>
Date: Mon, 13 Jun 2022 16:46:16 +0200
Subject: [PATCH 03/12] [NOAPI] [DETAIL] Remove range-v3

---
 test/include/seqan3/test/seqan2.hpp              | 16 ----------------
 .../alignment/decorator/gap_decorator_test.cpp   |  4 ----
 .../pairwise/alignment_configurator_test.cpp     |  2 --
 test/unit/utility/views/elements_test.cpp        |  2 --
 .../utility/views/single_pass_input_test.cpp     |  2 --
 5 files changed, 26 deletions(-)

diff --git a/test/include/seqan3/test/seqan2.hpp b/test/include/seqan3/test/seqan2.hpp
index c85b4ca59..718c21f5b 100644
--- a/test/include/seqan3/test/seqan2.hpp
+++ b/test/include/seqan3/test/seqan2.hpp
@@ -34,24 +34,8 @@
 
 #include <seqan3/std/ranges>
 
-#include <range/v3/range_fwd.hpp>
-
 #include <seqan/basic.h>
 
-namespace ranges
-{
-
-/*!\brief This makes seqan2 iterators ranges-aware, i.e. makes them fulfil ranges::indirectly_readable which is in turn
- *        needed for ranges::input_iterator and ranges::input_range.
- */
-template <typename ...args_t>
-struct indirectly_readable_traits<seqan::Iter<args_t...>>
-{
-    using value_type = typename seqan::Value<seqan::Iter<args_t...>>::Type;
-};
-
-} // namespace ranges
-
 #if __cpp_lib_ranges // C++20 ranges available
 namespace std
 {
diff --git a/test/unit/alignment/decorator/gap_decorator_test.cpp b/test/unit/alignment/decorator/gap_decorator_test.cpp
index cb542af11..7f5d32db9 100644
--- a/test/unit/alignment/decorator/gap_decorator_test.cpp
+++ b/test/unit/alignment/decorator/gap_decorator_test.cpp
@@ -10,8 +10,6 @@
 
 #include <gtest/gtest.h>
 
-#include <range/v3/view/filter.hpp>
-
 #include <seqan3/alignment/aligned_sequence/aligned_sequence_concept.hpp>
 #include <seqan3/alignment/decorator/gap_decorator.hpp>
 #include <seqan3/alphabet/nucleotide/dna4.hpp>
@@ -127,8 +125,6 @@ TYPED_TEST(gap_decorator_f, concept_checks)
 
     EXPECT_FALSE((std::ranges::enable_view<TypeParam>));
     EXPECT_FALSE((std::ranges::enable_view<TypeParam &>));
-    EXPECT_FALSE((ranges::enable_view<TypeParam>));
-    EXPECT_FALSE((ranges::enable_view<TypeParam &>));
 
     EXPECT_FALSE((std::ranges::view<TypeParam>));
 
diff --git a/test/unit/alignment/pairwise/alignment_configurator_test.cpp b/test/unit/alignment/pairwise/alignment_configurator_test.cpp
index e92f0cc17..d58acb75c 100644
--- a/test/unit/alignment/pairwise/alignment_configurator_test.cpp
+++ b/test/unit/alignment/pairwise/alignment_configurator_test.cpp
@@ -9,8 +9,6 @@
 
 #include <seqan3/std/ranges>
 
-#include <range/v3/view/single.hpp>
-
 #include <seqan3/alignment/configuration/align_config_score_type.hpp>
 #include <seqan3/alignment/pairwise/alignment_configurator.hpp>
 #include <seqan3/alignment/pairwise/detail/type_traits.hpp>
diff --git a/test/unit/utility/views/elements_test.cpp b/test/unit/utility/views/elements_test.cpp
index f9d5d13b1..aa06c46e9 100644
--- a/test/unit/utility/views/elements_test.cpp
+++ b/test/unit/utility/views/elements_test.cpp
@@ -10,8 +10,6 @@
 
 #include <gtest/gtest.h>
 
-#include <range/v3/view/zip.hpp>
-
 #include <seqan3/alphabet/detail/debug_stream_alphabet.hpp>
 #include <seqan3/alphabet/mask/masked.hpp>
 #include <seqan3/alphabet/quality/aliases.hpp>
diff --git a/test/unit/utility/views/single_pass_input_test.cpp b/test/unit/utility/views/single_pass_input_test.cpp
index e2b0334a9..ebc29e5b7 100644
--- a/test/unit/utility/views/single_pass_input_test.cpp
+++ b/test/unit/utility/views/single_pass_input_test.cpp
@@ -11,8 +11,6 @@
 #include <type_traits>
 #include <vector>
 
-#include <range/v3/view/slice.hpp>
-
 #include <seqan3/core/detail/persist_view.hpp>
 #include <seqan3/test/expect_same_type.hpp>
 #include <seqan3/utility/views/single_pass_input.hpp>
-- 
2.34.1