From b0454c22e35a87314f714f52acfa3d57b512ff51 Mon Sep 17 00:00:00 2001 From: Jaiveer Katariya Date: Fri, 2 Aug 2024 12:46:42 -0400 Subject: [PATCH] deleting unused function --- src/types/privatekubectl.ts | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/src/types/privatekubectl.ts b/src/types/privatekubectl.ts index 7c94f88ec..790855f46 100644 --- a/src/types/privatekubectl.ts +++ b/src/types/privatekubectl.ts @@ -85,38 +85,6 @@ export class PrivateKubectl extends Kubectl { private containsFilenames(str: string) { return str.includes('-f ') || str.includes('filename ') } - - private moveFileToTempManifestDir(file: string) { - createTempManifestsDirectory() - if (!fs.existsSync('/tmp/' + file)) { - core.debug( - '/tmp/' + - file + - ' does not exist, and therefore cannot be moved to the manifest directory' - ) - } - - fs.copyFile('/tmp/' + file, '/tmp/manifests/' + file, function (err) { - if (err) { - core.debug( - 'Could not rename ' + - '/tmp/' + - file + - ' to ' + - '/tmp/manifests/' + - file + - ' ERROR: ' + - err - ) - return - } - core.debug( - "Successfully moved file '" + - file + - "' from /tmp to /tmp/manifest directory" - ) - }) - } } function createTempManifestsDirectory(): string {