From b033c491b8df6e6c4bc11f9941f2bba93bb9d10f Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 23 Aug 2025 13:10:44 -0400 Subject: Remove some unused imports --- src/ast.c | 2 -- src/enums.c | 2 -- src/environment.c | 2 -- src/naming.c | 2 -- src/parse.c | 3 --- src/structs.c | 3 --- src/tomo.c | 1 - src/typecheck.c | 1 - src/types.c | 1 - 9 files changed, 17 deletions(-) diff --git a/src/ast.c b/src/ast.c index 54df3109..a1bcac58 100644 --- a/src/ast.c +++ b/src/ast.c @@ -3,9 +3,7 @@ #include #include "ast.h" -#include "types.h" #include "stdlib/datatypes.h" -#include "stdlib/integers.h" #include "stdlib/tables.h" #include "stdlib/text.h" diff --git a/src/enums.c b/src/enums.c index 113eb91d..ae15d71c 100644 --- a/src/enums.c +++ b/src/enums.c @@ -1,5 +1,4 @@ // Logic for compiling tagged unions (enums) -#include #include #include @@ -8,7 +7,6 @@ #include "environment.h" #include "naming.h" #include "stdlib/text.h" -#include "stdlib/util.h" #include "structs.h" #include "typecheck.h" diff --git a/src/environment.c b/src/environment.c index f43e8daf..22b13e65 100644 --- a/src/environment.c +++ b/src/environment.c @@ -1,14 +1,12 @@ // Logic for the environmental context information during compilation // (variable bindings, code sections, etc.) #include -#include #include #include "environment.h" #include "naming.h" #include "parse.h" #include "stdlib/datatypes.h" -#include "stdlib/paths.h" #include "stdlib/tables.h" #include "stdlib/text.h" #include "stdlib/util.h" diff --git a/src/naming.c b/src/naming.c index ba5098fd..664fd970 100644 --- a/src/naming.c +++ b/src/naming.c @@ -1,12 +1,10 @@ // Logic for converting user's Tomo names into valid C identifiers -#include #include #include #include "environment.h" #include "stdlib/paths.h" -#include "stdlib/print.h" #include "stdlib/text.h" static const char *c_keywords[] = { // Maintain sorted order: diff --git a/src/parse.c b/src/parse.c index 181aae58..06184b97 100644 --- a/src/parse.c +++ b/src/parse.c @@ -1,7 +1,6 @@ // Recursive descent parser for parsing code #include #include -#include #include #include #include @@ -20,8 +19,6 @@ #include #include "ast.h" -#include "stdlib/integers.h" -#include "stdlib/paths.h" #include "stdlib/print.h" #include "stdlib/stacktrace.h" #include "stdlib/stdlib.h" diff --git a/src/structs.c b/src/structs.c index 873300c5..2d71fbac 100644 --- a/src/structs.c +++ b/src/structs.c @@ -1,14 +1,11 @@ // Logic for compiling new struct types defined in code -#include #include -#include #include "ast.h" #include "compile.h" #include "environment.h" #include "naming.h" #include "stdlib/text.h" -#include "stdlib/util.h" #include "typecheck.h" Text_t compile_struct_typeinfo(env_t *env, type_t *t, const char *name, arg_ast_t *fields, bool is_secret, bool is_opaque) diff --git a/src/tomo.c b/src/tomo.c index 89ff2fcc..c9414393 100644 --- a/src/tomo.c +++ b/src/tomo.c @@ -29,7 +29,6 @@ #include "stdlib/random.h" #include "stdlib/siphash.h" #include "stdlib/text.h" -#include "typecheck.h" #include "types.h" #define run_cmd(...) ({ const char *_cmd = String(__VA_ARGS__); if (verbose) print("\033[34;1m", _cmd, "\033[m"); popen(_cmd, "w"); }) diff --git a/src/typecheck.c b/src/typecheck.c index dc312cde..13a1c31e 100644 --- a/src/typecheck.c +++ b/src/typecheck.c @@ -2,7 +2,6 @@ #include #include #include -#include #include #include #include diff --git a/src/types.c b/src/types.c index f2dc5ddd..3e39c682 100644 --- a/src/types.c +++ b/src/types.c @@ -8,7 +8,6 @@ #include "environment.h" #include "stdlib/integers.h" #include "stdlib/print.h" -#include "stdlib/tables.h" #include "stdlib/text.h" #include "stdlib/util.h" #include "types.h" -- cgit v1.2.3