aboutsummaryrefslogtreecommitdiff
path: root/src/remove.c
diff options
context:
space:
mode:
authordacctal <dacctal@symlinx.net>2026-06-11 20:07:13 +0000
committerdacctal <dacctal@symlinx.net>2026-06-11 20:07:13 +0000
commitd057a68a837d278f5dfe55a5dc3c4998e4f126f5 (patch)
tree2ab65bbca01943bbfc36bade64b20771f7e28da9 /src/remove.c
parent12fc304f6627dabb2e907582b1ea724c9cad2297 (diff)
cpdir checkpoint
Diffstat (limited to 'src/remove.c')
-rw-r--r--src/remove.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/remove.c b/src/remove.c
deleted file mode 100644
index 1282d44..0000000
--- a/src/remove.c
+++ /dev/null
@@ -1,32 +0,0 @@
-#include <stdio.h>
-#include <dirent.h>
-#include <string.h>
-#include <sys/stat.h>
-#include <sys/types.h>
-
-#include "files.h"
-#include "vars.h"
-
-//void remove_pkg(Pkg pkg) {
-// char* src_code = pkg.src;
-// struct dirent* dirent_ptr;
-// DIR* dir_ptr;
-//
-// if ((dir_ptr = opendir(src_code)) == NULL) {
-// fprintf(stderr, "%scould not open %s\n", print_pkgit, src_code);
-// }
-//
-// while ((dirent_ptr = readdir(dir_ptr)) != NULL) {
-// struct stat stat_buf;
-// FILE* file_ptr = fopen(dirent_ptr->d_name, "r");
-// if (!file_ptr) { continue; }
-// if (strcmp(get_filename_ext(dirent_ptr->d_name), ".so") == 0) {
-// remove(strcat(map_get(&cached_install_directories, "lib"), strcat("/", dirent_ptr->d_name)));
-// } else if (!access(dirent_ptr->d_name, X_OK) && stat_buf.st_mode != S_IFDIR) {
-// remove(strcat(map_get(&cached_install_directories, "bin"), strcat("/", dirent_ptr->d_name)));
-// } else if (strcmp(get_filename_ext(dirent_ptr->d_name), ".h") == 0) {
-// remove(strcat(map_get(&cached_install_directories, "include"), strcat("/", dirent_ptr->d_name)));
-// }
-// }
-// }
-//}