From 3cc9f5df8be0a10c965137c7d2b7886cad2a7bc1 Mon Sep 17 00:00:00 2001 From: Kirill Petrashin Date: Sat, 2 May 2026 22:45:28 +0300 Subject: Remove unneeded includes --- Makefile | 4 ++-- bmp.c | 2 -- main.c | 2 -- path.c | 1 - 4 files changed, 2 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 3c7addb..c207fad 100644 --- a/Makefile +++ b/Makefile @@ -2,10 +2,10 @@ CC=gcc EXECUTABLE=astar astar: *.c *.h - $(CC) -Wall -Wpedantic -Wextra -Werror -O3 -o $(EXECUTABLE) priority_queue.c map.c stack.c path.c bmp.c main.c -lncurses -lm + $(CC) -Wall -Wpedantic -Wextra -Werror -O3 -o $(EXECUTABLE) priority_queue.c map.c stack.c path.c bmp.c main.c -lncurses debug: *.c *.h - $(CC) -Wall -g -o $(EXECUTABLE) -DPID_MESSAGE priority_queue.c map.c stack.c path.c bmp.c main.c -lncurses -lm + $(CC) -Wall -g -o $(EXECUTABLE) -DPID_MESSAGE priority_queue.c map.c stack.c path.c bmp.c main.c -lncurses clean: rm ./$(EXECUTABLE) diff --git a/bmp.c b/bmp.c index 601cdfe..6886a30 100644 --- a/bmp.c +++ b/bmp.c @@ -5,9 +5,7 @@ #include #include "map.h" -#include "path.h" #include "structs.h" -#include "priority_queue.h" /* TODO: clean up, do defines or whatever */ void map_to_bmp(Map map, size_t map_width, size_t map_height, Position start, Position goal, Path path, char **visited, char *filename) { diff --git a/main.c b/main.c index cd2b53a..3a0238b 100644 --- a/main.c +++ b/main.c @@ -10,7 +10,6 @@ #include "structs.h" #include "config.h" #include "error.h" -#include "priority_queue.h" #include "path.h" #include "bmp.h" @@ -20,7 +19,6 @@ - save pathfinding to a series of BMPs - less magical values - MORE MAPS FOR THE MAP PEOPLE - - Clean up unused `#include`s - keybinding help screen - 'clean' rendering mode, without all the ugly shit - Comments */ diff --git a/path.c b/path.c index a571963..d60d800 100644 --- a/path.c +++ b/path.c @@ -2,7 +2,6 @@ #include #include #include -#include #include #include -- cgit v1.2.3