Skip to content

eBPF-based security platform

util: remove the parse-options stub

Daniel Borkmanna32a356f4e1c
diff --git a/Makefile.shirudo b/Makefile.shirudo
index 0fd2417f..60d78298 100644
--- a/Makefile.shirudo
+++ b/Makefile.shirudo
@@ -132,7 +132,6 @@ CLANG_BPF := $(CLANG) -target bpf -O2 -g -Wall -Wextra \
UTIL_SRCS := \
$(CRYPTO_SRC) \
$(TLS_SRC) \
- util/parse-options.c \
util/loader.c \
util/upatch.c \
util/keyring.c \
@@ -369,9 +368,9 @@ build/target/util/loader.o: $(BPF_OBJS)
# operator-only `bpm build|push|tree append`. Not linked into the core
# shirudo binary.
tools/shirudo-build/shirudo-build: $(BUILD_OBJS) util/sign.o \
- util/parse-options.o util/upatch.o \
util/log.o util/json.o util/loader.o \
util/io.o util/malloc.o util/paths.o \
+ util/upatch.o \
util/elf_target.o util/hex.o util/keys.o \
util/seal.o \
util/crypto_openssl.o util/tls_openssl.o \
diff --git a/util/parse-options.c b/util/parse-options.c
deleted file mode 100644
index 05cb494c..00000000
--- a/util/parse-options.c
+++ /dev/null
@@ -1,9 +0,0 @@
-// SPDX-License-Identifier: BSD-2-Clause
-/*
- * Copyright (c) 2026 Authors of shirudo
- *
- * Whiteroom of libsubcmd's OPT_* + parse_options() subset. (stub)
- */
-
-#include "parse-options.h"
-
diff --git a/util/parse-options.h b/util/parse-options.h
deleted file mode 100644
index de3998bc..00000000
--- a/util/parse-options.h
+++ /dev/null
@@ -1,16 +0,0 @@
-/* SPDX-License-Identifier: BSD-2-Clause */
-/*
- * Copyright (c) 2026 Authors of shirudo
- *
- * shirudo CLI parser (whiteroom; libsubcmd is not linked).
- */
-
-#ifndef SHIRUDO_PARSE_OPTIONS_H
-#define SHIRUDO_PARSE_OPTIONS_H
-
-/*
- * TODO: design + implement once a subcommand needs structured
- * argument parsing.
- */
-
-#endif /* SHIRUDO_PARSE_OPTIONS_H */