summaryrefslogtreecommitdiffstats
path: root/app/common/services
diff options
context:
space:
mode:
authorGunnar Mills <gmills@us.ibm.com>2018-08-24 14:15:38 -0500
committerEd Tanous <ed.tanous@intel.com>2018-08-24 20:45:54 +0000
commitb817e07afb677d48851d8408a1b9d23091f0c429 (patch)
tree01e19c91747a76f1d7b91ccf1aad1f23e42a7aca /app/common/services
parent52b8bde9998cb35eab9c1300d41168a56f4ed0d3 (diff)
downloadphosphor-webui-b817e07afb677d48851d8408a1b9d23091f0c429.tar.gz
phosphor-webui-b817e07afb677d48851d8408a1b9d23091f0c429.zip
Remove unused chassisPowerOn
chassisPowerOff was unused and called the host object. Change-Id: If4ac2051f4eac594ac98810b157255e3294bf89a Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
Diffstat (limited to 'app/common/services')
-rw-r--r--app/common/services/api-utils.js27
1 files changed, 0 insertions, 27 deletions
diff --git a/app/common/services/api-utils.js b/app/common/services/api-utils.js
index 514cacc..a1fad8a 100644
--- a/app/common/services/api-utils.js
+++ b/app/common/services/api-utils.js
@@ -422,33 +422,6 @@ window.angular && (function(angular) {
});
return deferred.promise;
},
- chassisPowerOn: function(callback) {
- $http({
- method: 'POST',
- url: DataService.getHost() + '/xyz/openbmc_project/state/host0',
- headers: {
- 'Accept': 'application/json',
- 'Content-Type': 'application/json'
- },
- 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.data.CurrentPowerState);
- }
- },
- function(error) {
- if (callback) {
- callback(error);
- } else {
- console.log(error);
- }
- });
- },
chassisPowerOff: function() {
var deferred = $q.defer();
$http({
OpenPOWER on IntegriCloud