gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-wallet-webex] branch master updated: we don't need p


From: gnunet
Subject: [GNUnet-SVN] [taler-wallet-webex] branch master updated: we don't need postForm in the wallet httplib
Date: Fri, 23 Aug 2019 12:50:45 +0200

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository wallet-webex.

The following commit(s) were added to refs/heads/master by this push:
     new 98c15905 we don't need postForm in the wallet httplib
98c15905 is described below

commit 98c15905ea687c873ec54cfba2f68820f01c65f1
Author: Florian Dold <address@hidden>
AuthorDate: Fri Aug 23 12:50:36 2019 +0200

    we don't need postForm in the wallet httplib
---
 src/android/index.ts | 19 -------------------
 src/http.ts          |  2 --
 2 files changed, 21 deletions(-)

diff --git a/src/android/index.ts b/src/android/index.ts
index 7ff9b21d..485663a4 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 6bdd04e2..f450d847 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>;
 }
 
 

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]