aboutsummaryrefslogtreecommitdiffstats
path: root/ui-react/src/api
diff options
context:
space:
mode:
Diffstat (limited to 'ui-react/src/api')
-rw-r--r--ui-react/src/api/LoopService.js20
-rw-r--r--ui-react/src/api/UserService.js25
2 files changed, 0 insertions, 45 deletions
diff --git a/ui-react/src/api/LoopService.js b/ui-react/src/api/LoopService.js
index 8f9805e33..c45df6c61 100644
--- a/ui-react/src/api/LoopService.js
+++ b/ui-react/src/api/LoopService.js
@@ -79,26 +79,6 @@ export default class LoopService {
});
}
- static getSvg(loopName) {
- return fetch('/restservices/clds/v2/loop/svgRepresentation/' + loopName, {
- method: 'GET',
- credentials: 'same-origin'
- })
- .then(function (response) {
- console.debug("svgRepresentation response received: ", response.status);
- if (response.ok) {
- return response.text();
- } else {
- console.error("svgRepresentation query failed");
- return "";
- }
- })
- .catch(function (error) {
- console.error("svgRepresentation error received", error);
- return "";
- });
- }
-
static setMicroServiceProperties(loopName, jsonData) {
return fetch('/restservices/clds/v2/loop/updateMicroservicePolicy/' + loopName, {
method: 'POST',
diff --git a/ui-react/src/api/UserService.js b/ui-react/src/api/UserService.js
index 5703fdcc7..477ca4269 100644
--- a/ui-react/src/api/UserService.js
+++ b/ui-react/src/api/UserService.js
@@ -47,31 +47,6 @@ export default class UserService {
return UserService.notLoggedUserName;
});
}
-
- static logout() {
- return fetch('/restservices/clds/v1/user/logout', {
- method: 'POST',
- credentials: 'same-origin'
- })
- .then(function (response) {
- console.debug("logout response received, status code:", response.status);
- if (response.ok) {
- return response.text();
- } else {
- console.error("logout response is nok");
- return UserService.notLoggedUserName;
- }
- })
- .then(function (data) {
- console.info ("User disconnected:",data)
- return data;
- })
- .catch(function(error) {
- console.warn("logout error received, user set to: ",UserService.notLoggedUserName);
- console.error("logout error:",error);
- return UserService.notLoggedUserName;
- });
- }
static getUserInfo() {
return fetch('/restservices/clds/v2/clampInformation', {