From fe18c551738f7213560f988608fc4d5f8e68e24a Mon Sep 17 00:00:00 2001 From: Olivier Gagnon Date: Fri, 24 Sep 2021 23:09:18 -0400 Subject: [PATCH] removed some unused files. --- css/popupboxes.scss | 1 + src/NetscriptEvaluator.ts | 2 +- src/SaveObject.d.ts | 6 --- src/Settings/SettingEnums.ts | 89 ------------------------------------ src/engine.d.ts | 1 - 5 files changed, 2 insertions(+), 97 deletions(-) delete mode 100644 src/SaveObject.d.ts delete mode 100644 src/engine.d.ts diff --git a/css/popupboxes.scss b/css/popupboxes.scss index dd0269b95..334d53a5b 100644 --- a/css/popupboxes.scss +++ b/css/popupboxes.scss @@ -100,6 +100,7 @@ flex: row nowrap; align-items: center; justify-content: space-between; + cursor: grab; } .log-box-log-container { diff --git a/src/NetscriptEvaluator.ts b/src/NetscriptEvaluator.ts index 14939303e..1e1297f83 100644 --- a/src/NetscriptEvaluator.ts +++ b/src/NetscriptEvaluator.ts @@ -53,7 +53,7 @@ export function resolveNetscriptRequestedThreads( return requestedThreadsAsInt; } -export function getErrorLineNumber(exp: any, workerScript: WorkerScript): number { +function getErrorLineNumber(exp: any, workerScript: WorkerScript): number { return -1; // TODO wtf is codeCode? diff --git a/src/SaveObject.d.ts b/src/SaveObject.d.ts deleted file mode 100644 index 8d000a0fd..000000000 --- a/src/SaveObject.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export declare const saveObject: { - getSaveString: () => string; - saveGame: () => void; - exportGame: () => void; -}; -export declare function loadGame(s: string): boolean; diff --git a/src/Settings/SettingEnums.ts b/src/Settings/SettingEnums.ts index 098e12585..3980af98f 100644 --- a/src/Settings/SettingEnums.ts +++ b/src/Settings/SettingEnums.ts @@ -1,94 +1,5 @@ // Enums that defined allowed values for setting configuration -/** - * Allowed values for 'Keybinding/Keymap' setting in Ace editor - */ -export enum AceKeybindingSetting { - Ace = "ace", - Emacs = "emacs", - Vim = "vim", -} - -/** - * Allowed values for 'Keybinding/Keymap' setting in Code Mirror editor - */ -export enum CodeMirrorKeybindingSetting { - Default = "default", - Emacs = "emacs", - Sublime = "sublime", - Vim = "vim", -} - -/** - * Allowed values for 'Theme' setting in Code Mirror editor - */ -export enum CodeMirrorThemeSetting { - Monokai = "monokai", - Day_3024 = "3024-day", - Night_3024 = "3024-night", - abcdef = "abcdef", - Ambiance_mobile = "ambiance-mobile", - Ambiance = "ambiance", - Base16_dark = "base16-dark", - Base16_light = "base16-light", - Bespin = "bespin", - Blackboard = "blackboard", - Cobalt = "cobalt", - Colorforth = "colorforth", - Darcula = "darcula", - Dracula = "dracula", - Duotone_dark = "duotone-dark", - Duotone_light = "duotone-light", - Eclipse = "eclipse", - Elegant = "elegant", - Erlang_dark = "erlang-dark", - Gruvbox_dark = "gruvbox-dark", - Hopscotch = "hopscotch", - Icecoder = "icecoder", - Idea = "idea", - Isotope = "isotope", - Lesser_dark = "lesser-dark", - Liquibyte = "liquibyte", - Lucario = "lucario", - Material = "material", - Mbo = "mbo", - Mdn_like = "mdn-like", - Midnight = "midnight", - Neat = "neat", - Neo = "neo", - Night = "night", - Oceanic_next = "oceanic-next", - Panda_syntax = "panda-syntax", - Paraiso_dark = "paraiso-dark", - Paraiso_light = "paraiso-light", - Pastel_on_dark = "pastel-on-dark", - Railscasts = "railscasts", - Rubyblue = "rubyblue", - Seti = "seti", - Shadowfox = "shadowfox", - Solarized = "solarized", - SolarizedDark = "solarized dark", - ssms = "ssms", - The_matrix = "the-matrix", - Tomorrow_night_bright = "tomorrow-night-bright", - Tomorrow_night_eighties = "tomorrow-night-eighties", - Ttcn = "ttcn", - Twilight = "twilight", - Vibrant_ink = "vibrant-ink", - xq_dark = "xq-dark", - xq_light = "xq-light", - Yeti = "yeti", - Zenburn = "zenburn", -} - -/** - * Allowed values for the "Editor" setting - */ -export enum EditorSetting { - Ace = "Ace", - CodeMirror = "CodeMirror", -} - /** * Allowed values for the 'OwnedAugmentationsOrder' setting */ diff --git a/src/engine.d.ts b/src/engine.d.ts deleted file mode 100644 index 4faff3450..000000000 --- a/src/engine.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const Engine: IEngine;