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>
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 @@
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',