Skip to content

Commit

Permalink
chore: Remove unnecessary getSystemsGroups
Browse files Browse the repository at this point in the history
  • Loading branch information
gkarat committed Feb 10, 2025
1 parent fa06d52 commit 7fdf2dd
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/Utilities/api.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { APIFactory } from '@redhat-cloud-services/javascript-clients-shared/utils';
import apiSystemProfileGetOperatingSystem from '@redhat-cloud-services/host-inventory-client/apiSystemProfileGetOperatingSystem';
import apiGroupGetGroupList from '@redhat-cloud-services/host-inventory-client/apiGroupGetGroupList';
import apiSystemProfileGetOperatingSystem from '@redhat-cloud-services/host-inventory-client/ApiSystemProfileGetOperatingSystem';
import axiosInstance from './axiosInterceptors';
import { encodeApiParams, prepareEntitiesParams } from './Helpers';

Expand Down Expand Up @@ -33,8 +32,7 @@ export function createApiCall(
const hostInventoryApi = APIFactory(
INVENTORY_API_BASE,
{
apiSystemProfileGetOperatingSystem,
apiGroupGetGroupList
apiSystemProfileGetOperatingSystem
},
{
axios: axiosInstance
Expand Down Expand Up @@ -229,10 +227,6 @@ export const getOperatingSystems = () => {
return hostInventoryApi.apiSystemProfileGetOperatingSystem();
};

export const getSystemsGroups = () => {
return hostInventoryApi.apiGroupGetGroupList();
};

export const fetchIDs = (endpoint, queryParams) => {
return createApiCall(endpoint, 'v3', 'get', queryParams);
};

0 comments on commit 7fdf2dd

Please sign in to comment.