Removed unused function
This commit is contained in:
parent
c1f6615946
commit
4d002709fd
29
main.c
29
main.c
|
@ -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) {
|
||||||
|
|
Reference in New Issue