From 56f65fc5e166da1d9e6ff81bb712c47031217a44 Mon Sep 17 00:00:00 2001 From: Frangu Vlad Date: Fri, 23 Feb 2018 17:13:02 +0200 Subject: [PATCH] Cleanup (#44) --- src/extension.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/extension.ts b/src/extension.ts index 63b8df2..c26bfc6 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -21,8 +21,6 @@ const knownLanguages: string[] = lang.knownLanguages; // Define the RPC variable and its type. let rpc: Client; -// Define the eventHandler variable and its type. -const eventHandlers: Set = new Set(); // Define the config variable and its type. let config; // Define the reconnecting var and its type. @@ -207,8 +205,6 @@ async function destroyRPC(): Promise { if (activityTimer) clearInterval(activityTimer); // Null the activity timer. activityTimer = null; - // Dispose of the event handlers. - eventHandlers.forEach(event => event.dispose()); // If there's an RPC Client initalized, destroy it. await rpc.destroy(); // Null the RPC variable.