summaryrefslogtreecommitdiffstats
path: root/gui-clamp/ui-react/src/api/ControlLoopService.js
diff options
context:
space:
mode:
Diffstat (limited to 'gui-clamp/ui-react/src/api/ControlLoopService.js')
-rw-r--r--gui-clamp/ui-react/src/api/ControlLoopService.js33
1 files changed, 0 insertions, 33 deletions
diff --git a/gui-clamp/ui-react/src/api/ControlLoopService.js b/gui-clamp/ui-react/src/api/ControlLoopService.js
index b3d987c..011d5ae 100644
--- a/gui-clamp/ui-react/src/api/ControlLoopService.js
+++ b/gui-clamp/ui-react/src/api/ControlLoopService.js
@@ -132,18 +132,6 @@ export default class ControlLoopService {
return data;
}
- static async getToscaControlLoopDefinitions() {
-
- const response = await fetch(window.location.pathname +
- 'restservices/clds/v2/toscaControlLoop/getElementDefinitions');
-
- this.checkResponseForError(response);
-
- const data = await response;
-
- return data;
- }
-
static async getCommonOrInstanceProperties(name, version, isCommon) {
const params = {
name: name,
@@ -157,25 +145,4 @@ export default class ControlLoopService {
return response;
}
- static async getToscaServiceTemplateSchema(section) {
-
- const params = {
- section: section
- }
-
- const response = await fetch(window.location.pathname +
- 'restservices/clds/v2/toscaControlLoop/getJsonSchema' + '?' + (new URLSearchParams(params)));
-
- this.checkResponseForError(response);
-
- return response;
- }
-
- static checkResponseForError(response) {
- if (!response.ok) {
- const message = `An error has occurred: ${ response.status }`;
- throw new Error(message);
- }
- }
-
}