Removed unused function

This commit is contained in:
luca0N! 2020-06-27 01:53:45 -03:00
parent c1f6615946
commit 4d002709fd
No known key found for this signature in database
GPG Key ID: 9F1B99B522287CAB
1 changed files with 0 additions and 29 deletions

29
main.c
View File

@ -29,35 +29,6 @@
#include <stdbool.h> #include <stdbool.h>
#include <string.h> #include <string.h>
// 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. // Prints the program license to the user.
int printLicense(int full){ int printLicense(int full){
if (full == 0) { if (full == 0) {