From 157f544ac2149a985b0f62e9381a759c0ae252ec Mon Sep 17 00:00:00 2001 From: John Keeping Date: Thu, 13 Aug 2015 12:14:15 +0100 Subject: Remove redundant includes These are all included in git-compat-util.h (when necessary), which we include in cgit.h. Signed-off-by: John Keeping --- filter.c | 6 ------ html.c | 6 ------ shared.c | 1 - ui-plain.c | 1 - ui-repolist.c | 1 - ui-summary.c | 1 - 6 files changed, 16 deletions(-) diff --git a/filter.c b/filter.c index ebf4937..c7037a3 100644 --- a/filter.c +++ b/filter.c @@ -8,13 +8,7 @@ #include "cgit.h" #include "html.h" -#include -#include -#include -#include -#include #include -#include #ifndef NO_LUA #include #include diff --git a/html.c b/html.c index 155cde5..a47cff0 100644 --- a/html.c +++ b/html.c @@ -8,12 +8,6 @@ #include "cgit.h" #include "html.h" -#include -#include -#include -#include -#include -#include /* Percent-encoding of each character, except: a-zA-Z0-9!$()*,./:;@- */ static const char* url_escape_table[256] = { diff --git a/shared.c b/shared.c index 0431b59..3bd2a9e 100644 --- a/shared.c +++ b/shared.c @@ -7,7 +7,6 @@ */ #include "cgit.h" -#include struct cgit_repolist cgit_repolist; struct cgit_context ctx; diff --git a/ui-plain.c b/ui-plain.c index b787bc3..3a2cb47 100644 --- a/ui-plain.c +++ b/ui-plain.c @@ -6,7 +6,6 @@ * (see COPYING for full license text) */ -#include #include "cgit.h" #include "ui-plain.h" #include "html.h" diff --git a/ui-repolist.c b/ui-repolist.c index edefc4c..43253ed 100644 --- a/ui-repolist.c +++ b/ui-repolist.c @@ -10,7 +10,6 @@ #include "ui-repolist.h" #include "html.h" #include "ui-shared.h" -#include static time_t read_agefile(char *path) { diff --git a/ui-summary.c b/ui-summary.c index b0af073..a5c7078 100644 --- a/ui-summary.c +++ b/ui-summary.c @@ -13,7 +13,6 @@ #include "ui-refs.h" #include "ui-blob.h" #include "ui-shared.h" -#include static int urls; -- cgit v1.2.3-24-g4f1b