aboutsummaryrefslogtreecommitdiff
path: root/src/find.c
diff options
context:
space:
mode:
authordacctal <dacctal@symlinx.net>2026-06-21 01:33:58 +0000
committerdacctal <dacctal@symlinx.net>2026-06-21 01:33:58 +0000
commit7cde9aeb5dccce578c1eed13cf1ed2c61e446800 (patch)
tree3323e34bbec0a87a4bb659a90816b28a6a241f5a /src/find.c
parent6482da05e96630d622f7deea02e31cb0ff07c89e (diff)
huge code cleanup
Diffstat (limited to 'src/find.c')
-rw-r--r--src/find.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/find.c b/src/find.c
deleted file mode 100644
index 4387d3c..0000000
--- a/src/find.c
+++ /dev/null
@@ -1,20 +0,0 @@
-#include <stdio.h>
-#include <string.h>
-
-#include "list_pkgs.h"
-#include "lua_state.h"
-
-void find(const char* arg) {
- init_lua_state();
- cache_repos();
- if (!arg) {
- for (size_t i = 0; i < cached_repos_count; i++) {
- printf("%s\n", cached_repos[i].source_key);
- }
- return;
- }
- for (size_t i = 0; i < cached_repos_count; i++) {
- if (!strstr(cached_repos[i].source_key, arg)) continue;
- printf("%s\n", cached_repos[i].source_key);
- }
-}