From 9725be0d71921bc301c6732d4400ea53fdb2b114 Mon Sep 17 00:00:00 2001 From: KoalaSat Date: Thu, 28 Mar 2024 23:45:54 +0100 Subject: [PATCH] Remove deprecated code --- mobile/services/Tor/index.ts | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/mobile/services/Tor/index.ts b/mobile/services/Tor/index.ts index f83079cc..45986169 100644 --- a/mobile/services/Tor/index.ts +++ b/mobile/services/Tor/index.ts @@ -1,12 +1,6 @@ import TorModule from '../../lib/native/TorModule'; class TorClient { - daemon: object; - - constructor() { - this.daemon = {}; - } - public get: (baseUrl: string, path: string, headers: object) => Promise = async ( baseUrl, path, @@ -47,24 +41,6 @@ class TorClient { }); }; - public request: (baseUrl: string, path: string) => Promise = async ( - baseUrl: string, - path, - ) => { - return await new Promise(async (resolve, reject) => { - try { - // const response = await this.daemon - // .request(`${baseUrl}${path}`, 'GET', '', {}, true) - // .then((resp) => { - // resolve(resp); - // }); - // resolve(response); - } catch (error) { - reject(error); - } - }); - }; - public post: (baseUrl: string, path: string, body: object, headers: object) => Promise = async (baseUrl, path, body, headers) => { return await new Promise(async (resolve, reject) => {