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) => {