diff --git a/src/main.cpp b/src/main.cpp index d298483..a24427b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -5,7 +5,6 @@ #include #include #include -#include #include #include #include @@ -42,11 +41,11 @@ int main(int argc, char **argv, char **envp) { // Removes cache if (std::filesystem::exists(cacheid) && std::filesystem::is_directory(cacheid)) { - int status = remove(std::string{cacheid}.c_str()); - int status2 = remove(std::string{cachesc}.c_str()); + std::filesystem::remove(cacheid); + std::filesystem::remove(cachesc); } else { - int status = remove(std::string{cacheid}.c_str()); - int status2 = remove(std::string{cachesc}.c_str()); + std::filesystem::remove(cacheid); + std::filesystem::remove(cachesc); } std::vector ARGS{argv, argv + argc};