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 <ramsay@ramsay1.demon.co.uk>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
diff --git a/src/hash.c b/src/hash.c
index 1ddf7a3..775e4b4 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 <openssl/sha.h>
+#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 f4153cc..0000000
--- 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 <openssl/sha.h>
-#else
-# include "block-sha1/sha1.h"
-#endif
-
-#endif /* INCLUDE_sha1_h__ */