Skip to content

Commit 4bb490d

Browse files
authored
clean thrift->proto enum mapper (#718)
1 parent ab27a4d commit 4bb490d

File tree

1 file changed

+0
-27
lines changed
  • src/main/java/com/uber/cadence/internal/compatibility/thrift

1 file changed

+0
-27
lines changed

src/main/java/com/uber/cadence/internal/compatibility/thrift/EnumMapper.java

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -60,19 +60,6 @@ public static TaskListKind taskListKind(com.uber.cadence.api.v1.TaskListKind t)
6060
throw new IllegalArgumentException("unexpected enum value");
6161
}
6262

63-
public static TaskListType taskListType(com.uber.cadence.api.v1.TaskListType t) {
64-
if (t == TASK_LIST_TYPE_INVALID) {
65-
return null;
66-
}
67-
switch (t) {
68-
case TASK_LIST_TYPE_DECISION:
69-
return TaskListType.Decision;
70-
case TASK_LIST_TYPE_ACTIVITY:
71-
return TaskListType.Activity;
72-
}
73-
throw new IllegalArgumentException("unexpected enum value");
74-
}
75-
7663
public static HistoryEventFilterType eventFilterType(com.uber.cadence.api.v1.EventFilterType t) {
7764
if (t == EventFilterType.EVENT_FILTER_TYPE_INVALID) {
7865
return null;
@@ -261,20 +248,6 @@ public static WorkflowExecutionCloseStatus workflowExecutionCloseStatus(
261248
throw new IllegalArgumentException("unexpected enum value");
262249
}
263250

264-
public static QueryTaskCompletedType queryTaskCompletedType(
265-
com.uber.cadence.api.v1.QueryResultType t) {
266-
if (t == QUERY_RESULT_TYPE_INVALID) {
267-
return null;
268-
}
269-
switch (t) {
270-
case QUERY_RESULT_TYPE_ANSWERED:
271-
return QueryTaskCompletedType.COMPLETED;
272-
case QUERY_RESULT_TYPE_FAILED:
273-
return QueryTaskCompletedType.FAILED;
274-
}
275-
throw new IllegalArgumentException("unexpected enum value");
276-
}
277-
278251
public static DomainStatus domainStatus(com.uber.cadence.api.v1.DomainStatus t) {
279252
switch (t) {
280253
case DOMAIN_STATUS_INVALID:

0 commit comments

Comments
 (0)