Skip to content

Commit

Permalink
Remove unused ProcessFactory interface methods before refactoring. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
davinchia committed May 31, 2021
1 parent 88b7a42 commit 50697a4
Showing 1 changed file with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,6 @@ public interface ProcessFactory {
Process create(String jobId, int attempt, final Path jobPath, final String imageName, final String entrypoint, final String... args)
throws WorkerException;

default Process create(long jobId, int attempt, final Path jobPath, final String imageName, final String entrypoint, final String... args)
throws WorkerException {
return create(String.valueOf(jobId), attempt, jobPath, imageName, entrypoint, args);
}

default Process create(String jobId,
int attempt,
final Path jobPath,
Expand All @@ -61,9 +56,4 @@ default Process create(String jobId,
return create(jobId, attempt, jobPath, imageName, entrypoint, args.toArray(new String[0]));
}

default Process create(long jobId, int attempt, final Path jobPath, final String imageName, final String entrypoint, final List<String> args)
throws WorkerException {
return create(String.valueOf(jobId), attempt, jobPath, imageName, entrypoint, args);
}

}

0 comments on commit 50697a4

Please sign in to comment.