Skip to content

Commit

Permalink
removed unused private method
Browse files Browse the repository at this point in the history
  • Loading branch information
torakiki committed Jan 16, 2016
1 parent 0d85f48 commit d0706b2
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,8 @@
package org.sejda.cli.transformer;

import org.sejda.cli.model.CompressTaskCliArguments;
import org.sejda.model.input.FileIndexAndPage;
import org.sejda.model.parameter.OptimizeParameters;

import java.util.Optional;

public class CompressCliArgumentsTransformer extends BaseCliArgumentsTransformer implements
CommandCliArgumentsTransformer<CompressTaskCliArguments, OptimizeParameters> {

Expand All @@ -40,13 +37,4 @@ public OptimizeParameters toTaskParameters(CompressTaskCliArguments taskCliArgum

return parameters;
}

private Optional<FileIndexAndPage> parseIndexAndPage(String in) {
String[] parts = in.split(":");
try {
return Optional.of(new FileIndexAndPage(Integer.valueOf(parts[0]), Integer.valueOf(parts[1])));
} catch (RuntimeException e) {
return Optional.empty();
}
}
}

0 comments on commit d0706b2

Please sign in to comment.