Skip to content

Commit 86b57db

Browse files
committed
[BP] MB-55535: Remove unused InputType::CPStart/CPEnd
Change-Id: If184ec7244e8ee258de10db9b0daaea8d586b7b2 Reviewed-on: https://review.couchbase.org/c/kv_engine/+/200039 Well-Formed: Restriction Checker Tested-by: Paolo Cocchi <[email protected]> Reviewed-by: Trond Norbye <[email protected]>
1 parent b5c9096 commit 86b57db

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

engines/ep/tests/module_tests/collections/collections_seqno_advance.cc

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#include <utility>
2828

2929
// These enums control the test input
30-
enum class InputType { Mutation, Prepare, CPEndStart, CPStart, CPEnd };
30+
enum class InputType { Mutation, Prepare, CPEndStart };
3131

3232
enum class ForStream {
3333
Yes,
@@ -154,8 +154,6 @@ class CollectionsSeqnoAdvanced
154154
++currentSeqno;
155155
break;
156156
case InputType::CPEndStart:
157-
case InputType::CPStart:
158-
case InputType::CPEnd:
159157
break;
160158
}
161159

@@ -186,14 +184,6 @@ class CollectionsSeqnoAdvanced
186184
queueCPStart();
187185
break;
188186
}
189-
case InputType::CPStart: {
190-
queueCPStart();
191-
break;
192-
}
193-
case InputType::CPEnd: {
194-
queueCPEnd();
195-
break;
196-
}
197187
}
198188
}
199189

@@ -430,12 +420,6 @@ std::string to_string(InputType type) {
430420
case InputType::CPEndStart: {
431421
return "CPEndStart";
432422
}
433-
case InputType::CPStart: {
434-
return "CPStart";
435-
}
436-
case InputType::CPEnd: {
437-
return "CPEnd";
438-
}
439423
}
440424
throw std::invalid_argument("to_string(InputType) invalid input");
441425
}

0 commit comments

Comments
 (0)