From d03f567593f346a1ca96a57f8191def098d126e3 Mon Sep 17 00:00:00 2001 From: Ramsay Jones Date: Fri, 4 Jun 2010 18:20:31 +0100 Subject: [PATCH] Remove the sha1.h header file and inline the content into hash.c Given that the sha1.h header file should never be included into any other file, since it represents an implementation detail of hash.c, we remove the header and inline it's content. Signed-off-by: Ramsay Jones --- src/hash.c | 9 ++++++++- src/sha1.h | 12 ------------ 2 files changed, 8 insertions(+), 13 deletions(-) delete mode 100644 src/sha1.h diff --git a/src/hash.c b/src/hash.c index 1ddf7a3bc..775e4b4c1 100644 --- a/src/hash.c +++ b/src/hash.c @@ -25,7 +25,14 @@ #include "common.h" #include "hash.h" -#include "sha1.h" + +#if defined(PPC_SHA1) +# include "ppc/sha1.h" +#elif defined(OPENSSL_SHA1) +# include +#else +# include "block-sha1/sha1.h" +#endif struct git_hash_ctx { SHA_CTX c; diff --git a/src/sha1.h b/src/sha1.h deleted file mode 100644 index f4153cc66..000000000 --- a/src/sha1.h +++ /dev/null @@ -1,12 +0,0 @@ -#ifndef INCLUDE_sha1_h__ -#define INCLUDE_sha1_h__ - -#if defined(PPC_SHA1) -# include "ppc/sha1.h" -#elif defined(OPENSSL_SHA1) -# include -#else -# include "block-sha1/sha1.h" -#endif - -#endif /* INCLUDE_sha1_h__ */