Skip to content

Commit 9b20296

Browse files
committed
Remove old code
Signed-off-by: Simone Arpe <[email protected]>
1 parent aab7fea commit 9b20296

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

android/src/main/java/com/pspdfkit/flutter/pspdfkit/PspdfkitPlugin.java

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
import androidx.core.content.ContextCompat;
2323

2424
import com.pspdfkit.PSPDFKit;
25-
import com.pspdfkit.document.PdfDocumentLoader;
2625
import com.pspdfkit.forms.ChoiceFormElement;
2726
import com.pspdfkit.forms.EditableButtonFormElement;
2827
import com.pspdfkit.forms.SignatureFormElement;
@@ -87,23 +86,6 @@ public void onMethodCall(@NonNull MethodCall call, @NonNull Result result) {
8786
requireNotNullNotEmpty(licenseKey, "License key");
8887
PSPDFKit.initialize(context, licenseKey);
8988
break;
90-
case "open":
91-
String documentPathToOpen = call.argument("document");
92-
requireNotNullNotEmpty(documentPathToOpen, "Document path");
93-
94-
final String documentPathToOpenFixedScheme = addFileSchemeIfMissing(documentPathToOpen);
95-
96-
//noinspection ResultOfMethodCallIgnored
97-
PdfDocumentLoader.openDocumentAsync(context, Uri.parse(documentPathToOpenFixedScheme))
98-
.subscribeOn(Schedulers.computation())
99-
.observeOn(AndroidSchedulers.mainThread())
100-
.subscribe(
101-
pdfDocument -> result.success(pdfDocument.getUid()),
102-
throwable -> result.error(LOG_TAG,
103-
String.format("Error while opening document %s", documentPathToOpenFixedScheme),
104-
throwable.getMessage())
105-
);
106-
break;
10789
case "present":
10890
String documentPath = call.argument("document");
10991
requireNotNullNotEmpty(documentPath, "Document path");

0 commit comments

Comments
 (0)