From b3694e123a7ef894c4dc3a4ed3f9adebe7b0aa2b Mon Sep 17 00:00:00 2001 From: Will Barnett Date: Thu, 29 Feb 2024 12:33:50 +0000 Subject: [PATCH] Removed unused class and references to it. --- platform/src/Backend.js | 37 ------------------------------------- platform/src/Playground.js | 5 ----- 2 files changed, 42 deletions(-) delete mode 100644 platform/src/Backend.js diff --git a/platform/src/Backend.js b/platform/src/Backend.js deleted file mode 100644 index f678ca1..0000000 --- a/platform/src/Backend.js +++ /dev/null @@ -1,37 +0,0 @@ -class Backend { - - services = {}; - - configure() { - /* - var xhr = new XMLHttpRequest(); - var url = "backend.json"; - xhr.open("GET", url, false); - xhr.send(); - if (xhr.status === 200) { - var json = JSON.parse(xhr.responseText); - for (const service of json.services) { - this.services[service.name] = service.url; - } - } - */ - } - - getRunEpsilonService() { - return this.services["RunEpsilonFunction"]; - } - - getFlexmiToPlantUMLService() { - return this.services["FlexmiToPlantUMLFunction"]; - } - - getEmfaticToPlantUMLService() { - return this.services["EmfaticToPlantUMLFunction"]; - } - - getShortURLService() { - return this.services["ShortURLFunction"]; - } -} - -export { Backend }; \ No newline at end of file diff --git a/platform/src/Playground.js b/platform/src/Playground.js index 3389d5b..f342937 100644 --- a/platform/src/Playground.js +++ b/platform/src/Playground.js @@ -31,7 +31,6 @@ import { CompositePanel } from './CompositePanel.js'; import { Button } from './Button.js'; import { Preloader } from './Preloader.js'; -import { Backend } from './Backend.js'; import { Layout } from './Layout.js'; import { PlaygroundUtility } from './PlaygroundUtility.js'; import { jsonRequest, jsonRequestConversion, ARRAY_ANY_ELEMENT, urlParamPrivateRepo } from './Utility.js'; @@ -42,10 +41,7 @@ const COMMON_UTILITY_URL = window.location.href.replace(window.location.search," var outputType = "text"; var outputLanguage = "text"; var activity; - var preloader = new Preloader(); -export var backend = new Backend(); - var panels = []; export var fileHandler = new FileHandler(TOKEN_HANDLER_URL); @@ -1063,7 +1059,6 @@ async function checkEditorReady(statusUrl, editorInstanceUrl, editorPanelId, edi window.runAction = runAction; window.panels = panels; window.savePanelContents = savePanelContents; - window.backend = backend; window.toggle = toggle; window.togglePanelById = togglePanelById; //window.renderDiagram = renderDiagram;