diff options
-rw-r--r-- | src/android/index.ts | 19 | ||||
-rw-r--r-- | src/http.ts | 2 |
2 files changed, 0 insertions, 21 deletions
diff --git a/src/android/index.ts b/src/android/index.ts index 7ff9b21d1..485663a41 100644 --- a/src/android/index.ts +++ b/src/android/index.ts @@ -82,25 +82,6 @@ export class AndroidHttpLib implements HttpRequestLibrary { } } - postForm(url: string, form: any): Promise<import("../http").HttpResponse> { - if (this.useNfcTunnel) { - const myId = this.requestId++; - const p = openPromise<HttpResponse>(); - this.requestMap[myId] = p; - const request = { - method: "postForm", - url, - form, - }; - this.sendMessage( - JSON.stringify({ type: "tunnelHttp", request, id: myId }), - ); - return p.promise; - } else { - return this.nodeHttpLib.postForm(url, form); - } - } - handleTunnelResponse(msg: any) { const myId = msg.id; const p = this.requestMap[myId]; diff --git a/src/http.ts b/src/http.ts index 6bdd04e24..f450d8479 100644 --- a/src/http.ts +++ b/src/http.ts @@ -35,8 +35,6 @@ export interface HttpRequestLibrary { get(url: string): Promise<HttpResponse>; postJson(url: string, body: any): Promise<HttpResponse>; - - postForm(url: string, form: any): Promise<HttpResponse>; } |