Skip to content

Commit

Permalink
Remove commented out retranslate from PdfLoader
Browse files Browse the repository at this point in the history
  • Loading branch information
ViliusSutkus89 committed Aug 26, 2024
1 parent 6d06e99 commit 44cf997
Showing 1 changed file with 0 additions and 34 deletions.
34 changes: 0 additions & 34 deletions app/src/main/java/at/tomtasche/reader/background/PdfLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -135,40 +135,6 @@ private void translate(Options options, Result result) throws Exception {
}
}

// @Override
// public File retranslate(Options options, String htmlDiff) {
// if (lastCore == null) {
// // necessary if fragment was destroyed in the meanwhile - meaning the Loader is reinstantiated
//
// Result result = new Result();
// result.options = options;
//
// try {
// translate(options, result);
// } catch (Exception e) {
// crashManager.log(e);
//
// return null;
// }
// }
//
// File inputFile = new File(lastCoreOptions.inputPath);
// File inputCacheDirectory = AndroidFileCache.getCacheDirectory(inputFile);
// File tempFilePrefix = new File(inputCacheDirectory, "retranslate");
//
// lastCoreOptions.outputPath = tempFilePrefix.getPath();
//
// try {
// CoreWrapper.CoreResult result = lastCore.backtranslate(lastCoreOptions, htmlDiff);
//
// return new File(result.outputPath);
// } catch (Throwable e) {
// crashManager.log(e);
//
// return null;
// }
// }

@Override
public void close() {
super.close();
Expand Down

0 comments on commit 44cf997

Please sign in to comment.