From 98c15905ea687c873ec54cfba2f68820f01c65f1 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Fri, 23 Aug 2019 12:50:36 +0200 Subject: we don't need postForm in the wallet httplib --- src/android/index.ts | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'src/android') 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 { - if (this.useNfcTunnel) { - const myId = this.requestId++; - const p = openPromise(); - 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]; -- cgit v1.2.3