From 6b23cc51a94f3a43cf52c306b6bddfbfd890fa78 Mon Sep 17 00:00:00 2001 From: cjenkscybercom <christina.jenks@knowit.se> Date: Wed, 20 Sep 2023 11:46:55 +0200 Subject: [PATCH] CE-2068: cleanup comments etc --- src/api/SwaggerApi.js | 24 --------------------- src/components/IOC/IOCService/IOCService.js | 1 - 2 files changed, 25 deletions(-) diff --git a/src/api/SwaggerApi.js b/src/api/SwaggerApi.js index fd350ddd..59444ee7 100644 --- a/src/api/SwaggerApi.js +++ b/src/api/SwaggerApi.js @@ -229,30 +229,6 @@ export function unpackOngoingOperations(input) { return output.totalCount > 0 ? output.operationsList[0] : null; } -export function useOngoingCommand(iocId) { - const api = useContext(apiContext); - const method = useCallAndUnpack( - api.apis.Deployments.listOperations, - unpackOngoingOperations - ); - const boundMethod = useCallback( - method.bind(null, { ioc_id: iocId, type: "COMMAND", status: "ONGOING" }), - [iocId] - ); - return useAsync({ - fcn: boundMethod, - call: false, - init: emptyOperationsListResponse - }); -} - -const emptyOperationsListResponse = { - totalCount: 0, - pageNumber: 0, - limit: 0, - operationsList: [] -}; - export function unpackOperation(operation) { const d = { ...operation }; return d; diff --git a/src/components/IOC/IOCService/IOCService.js b/src/components/IOC/IOCService/IOCService.js index 02317409..6f42bda0 100644 --- a/src/components/IOC/IOCService/IOCService.js +++ b/src/components/IOC/IOCService/IOCService.js @@ -49,7 +49,6 @@ export function IOCService({ setButtonDisabled, jobLazyParams }) { - console.log({ currentCommand }); const [error, setError] = useState(); const navigate = useNavigate(); -- GitLab