From 76ba26481e30b2c6d158993e2970defee99cdb76 Mon Sep 17 00:00:00 2001 From: Lawrence Forooghian Date: Thu, 4 May 2023 10:16:24 -0300 Subject: [PATCH] Remove unused platform-*.d.ts files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I don’t really understand what these were used for but they’re not imported anywhere any more. --- src/common/types/platform-bufferutils.d.ts | 16 ---------------- src/common/types/platform-crypto.d.ts | 3 --- src/common/types/platform-http.d.ts | 4 ---- src/common/types/platform-transports.d.ts | 6 ------ src/common/types/platform-webstorage.d.ts | 8 -------- 5 files changed, 37 deletions(-) delete mode 100644 src/common/types/platform-bufferutils.d.ts delete mode 100644 src/common/types/platform-crypto.d.ts delete mode 100644 src/common/types/platform-http.d.ts delete mode 100644 src/common/types/platform-transports.d.ts delete mode 100644 src/common/types/platform-webstorage.d.ts diff --git a/src/common/types/platform-bufferutils.d.ts b/src/common/types/platform-bufferutils.d.ts deleted file mode 100644 index f4c020f797..0000000000 --- a/src/common/types/platform-bufferutils.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -declare module 'platform-bufferutils' { - export const base64CharSet: string; - export const hexCharSet: string; - export const isBuffer: (buffer: unknown) => buffer is Buffer | ArrayBuffer | DataView; - export const toBuffer: (buffer: Buffer | TypedArray) => Buffer; - export const toArrayBuffer: (buffer: Buffer) => ArrayBuffer; - export const base64Encode: (buffer: Buffer | TypedArray) => string; - export const base64Decode: (string: string) => Buffer; - export const hexEncode: (buffer: Buffer | TypedArray) => string; - export const hexDecode: (string: string) => Buffer; - export const utf8Encode: (string: string) => Buffer; - export const utf8Decode: (buffer: Buffer) => string; - export const bufferCompare: (buffer1: Buffer, buffer2: Buffer) => number; - export const byteLength: (buffer: Buffer | ArrayBuffer | DataView) => number; - export const typedArrayToBuffer: (typedArray: TypedArray) => Buffer; -} diff --git a/src/common/types/platform-crypto.d.ts b/src/common/types/platform-crypto.d.ts deleted file mode 100644 index cda5ea8153..0000000000 --- a/src/common/types/platform-crypto.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -declare module 'platform-crypto' { - export const getCipher: Function; -} diff --git a/src/common/types/platform-http.d.ts b/src/common/types/platform-http.d.ts deleted file mode 100644 index 81aca4b8b2..0000000000 --- a/src/common/types/platform-http.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -declare module 'platform-http' { - const Http: typeof import('./http').IHttp; - export default Http; -} diff --git a/src/common/types/platform-transports.d.ts b/src/common/types/platform-transports.d.ts deleted file mode 100644 index f892e727d1..0000000000 --- a/src/common/types/platform-transports.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -declare module 'platform-transports' { - type Transport = import('../lib/transport/transport').default; - type ConnectionManager = import('../lib/transport/connectionmanager').default; - const PlatformTransports: Array<(connectionManager: typeof ConnectionManager) => Transport>; - export default PlatformTransports; -} diff --git a/src/common/types/platform-webstorage.d.ts b/src/common/types/platform-webstorage.d.ts deleted file mode 100644 index 4900205188..0000000000 --- a/src/common/types/platform-webstorage.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -declare module 'platform-webstorage' { - export const get: typeof import('../../platform/web/lib/util/webstorage').get; - export const getSession: typeof import('../../platform/web/lib/util/webstorage').getSession; - export const set: typeof import('../../platform/web/lib/util/webstorage').set; - export const setSession: typeof import('../../platform/web/lib/util/webstorage').setSession; - export const remove: typeof import('../../platform/web/lib/util/webstorage').remove; - export const removeSession: typeof import('../../platform/web/lib/util/webstorage').removeSession; -}