Skip to content

Commit 0ffbe74

Browse files
authored
refactor type mappers (#722)
1 parent 1f3892c commit 0ffbe74

File tree

2 files changed

+0
-22
lines changed

2 files changed

+0
-22
lines changed

src/main/java/com/uber/cadence/internal/compatibility/proto/TypeMapper.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -551,17 +551,6 @@ static ActivityLocalDispatchInfo activityLocalDispatchInfo(
551551
.build();
552552
}
553553

554-
static SupportedClientVersions supportedClientVersions(
555-
com.uber.cadence.SupportedClientVersions t) {
556-
if (t == null) {
557-
return SupportedClientVersions.newBuilder().build();
558-
}
559-
return SupportedClientVersions.newBuilder()
560-
.setGoSdk(t.getGoSdk())
561-
.setJavaSdk(t.getJavaSdk())
562-
.build();
563-
}
564-
565554
static Domain describeDomainResponseDomain(com.uber.cadence.DescribeDomainResponse t) {
566555
if (t == null) {
567556
return null;

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

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -265,17 +265,6 @@ static WorkflowQueryResult workflowQueryResult(com.uber.cadence.api.v1.WorkflowQ
265265
return res;
266266
}
267267

268-
static StickyExecutionAttributes stickyExecutionAttributes(
269-
com.uber.cadence.api.v1.StickyExecutionAttributes t) {
270-
if (t == null || t == com.uber.cadence.api.v1.StickyExecutionAttributes.getDefaultInstance()) {
271-
return null;
272-
}
273-
StickyExecutionAttributes res = new StickyExecutionAttributes();
274-
res.setWorkerTaskList(taskList(t.getWorkerTaskList()));
275-
res.setScheduleToStartTimeoutSeconds(durationToSeconds(t.getScheduleToStartTimeout()));
276-
return res;
277-
}
278-
279268
static WorkerVersionInfo workerVersionInfo(com.uber.cadence.api.v1.WorkerVersionInfo t) {
280269
if (t == null || t == com.uber.cadence.api.v1.WorkerVersionInfo.getDefaultInstance()) {
281270
return null;

0 commit comments

Comments
 (0)