Remove unused get BMC functions
getBMCEthernetInfo and getBMCInfo were unused.
Change-Id: I625e71803fb6c6e49ff968ad58a0021684aa723a
Tested: Manual GUI regression test on a Witherspoon.
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 37aacf6..514cacc 100644
--- a/app/common/services/api-utils.js
+++ b/app/common/services/api-utils.js
@@ -1164,55 +1164,6 @@
return response.data;
});
},
- getBMCEthernetInfo: function() {
- var deferred = $q.defer();
- $http({
- method: 'GET',
- url: DataService.getHost() +
- '/xyz/openbmc_project/inventory/system/chassis/motherboard/boxelder/bmc/ethernet',
- headers: {
- 'Accept': 'application/json',
- 'Content-Type': 'application/json'
- },
- withCredentials: true
- })
- .then(
- function(response) {
- var json = JSON.stringify(response.data);
- var content = JSON.parse(json);
- deferred.resolve(content.data);
- },
- function(error) {
- console.log(error);
- deferred.reject(error);
- });
-
- return deferred.promise;
- },
- getBMCInfo: function(callback) {
- var deferred = $q.defer();
- $http({
- method: 'GET',
- url: DataService.getHost() +
- '/xyz/openbmc_project/inventory/system/chassis/motherboard/boxelder/bmc',
- headers: {
- 'Accept': 'application/json',
- 'Content-Type': 'application/json'
- },
- withCredentials: true
- })
- .then(
- function(response) {
- var json = JSON.stringify(response.data);
- var content = JSON.parse(json);
- deferred.resolve(content.data);
- },
- function(error) {
- console.log(error);
- deferred.reject(error);
- });
- return deferred.promise;
- },
getServerInfo: function() {
// TODO: openbmc/openbmc#3117 Need a way via REST to get
// interfaces so we can get the system object(s) by the looking