summaryrefslogtreecommitdiffstats
path: root/app/common
diff options
context:
space:
mode:
authorGunnar Mills <gmills@us.ibm.com>2019-05-17 13:45:18 -0500
committerGunnar Mills <gmills@us.ibm.com>2019-05-17 13:54:16 -0500
commit8e1bb0a97f23a75a406cf899b4ba028024258dd7 (patch)
tree577511d23b28c86992003277081e638267de3a2f /app/common
parentc57ec32f4a98897c69bccc5a2a5ac32dcbe67b46 (diff)
downloadphosphor-webui-8e1bb0a97f23a75a406cf899b4ba028024258dd7.tar.gz
phosphor-webui-8e1bb0a97f23a75a406cf899b4ba028024258dd7.zip
Remove unused hostShutdown
hostShutdown in api-utils is not used. The Orderly shutdown on the power operations page calls APIUtils.hostPowerOff. The immediate shutdown calls APIUtils.chassisPowerOff. Tested: Did not. Searched the code and double checked the firmware panel and power operations panel. Change-Id: I6f0d209c3d2f13539bbe3ed2405221e902aaf590 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
Diffstat (limited to 'app/common')
-rw-r--r--app/common/services/api-utils.js23
1 files changed, 0 insertions, 23 deletions
diff --git a/app/common/services/api-utils.js b/app/common/services/api-utils.js
index e523993..6d82504 100644
--- a/app/common/services/api-utils.js
+++ b/app/common/services/api-utils.js
@@ -798,29 +798,6 @@ window.angular && (function(angular) {
return deferred.promise;
},
- hostShutdown: function(callback) {
- $http({
- method: 'POST',
- url: DataService.getHost() + '/xyz/openbmc_project/state/host0',
- withCredentials: true,
- data: JSON.stringify({'data': []})
- })
- .then(
- function(response) {
- var json = JSON.stringify(response.data);
- var content = JSON.parse(json);
- if (callback) {
- return callback(content);
- }
- },
- function(error) {
- if (callback) {
- callback(error);
- } else {
- console.log(error);
- }
- });
- },
getLastPowerTime: function() {
return $http({
method: 'GET',
OpenPOWER on IntegriCloud