From 4d002709fdee82030bb2058e4fc560b4a18fa5e2 Mon Sep 17 00:00:00 2001 From: luca0N! <63941044+luca0N@users.noreply.github.com> Date: Sat, 27 Jun 2020 01:53:45 -0300 Subject: [PATCH] Removed unused function --- main.c | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/main.c b/main.c index 4d043aa..53a8d88 100644 --- a/main.c +++ b/main.c @@ -29,35 +29,6 @@ #include #include -// Removes a directory using the Windows shell -int shellRemoveDir(LPCTSTR dirPath){ - // Remove the directory - //printf("!! ATTEMPT TO REMOVE (%d) %s\\...\n", len, shortPath); - - // Append null to the end of the path - // Double null terminated path string - char dntps[strlen(dirPath) + 2]; - strcpy(dntps, dirPath); - strcat(dntps, "\\\0"); - - SHFILEOPSTRUCT dir = {0}; - dir.wFunc = FO_DELETE; - dir.pFrom = dntps; - dir.fFlags = FOF_NOCONFIRMATION | FOF_NOERRORUI; - dir.fAnyOperationsAborted = 0; - /*dir = { - NULL, - FO_DELETE, - dntps, - NULL, - FOF_NOCONFIRMATION | FOF_NOERRORUI, - 0, - 0, - "" - };*/ - return SHFileOperation(&dir); -} - // Prints the program license to the user. int printLicense(int full){ if (full == 0) {