version.c: Remove unused version_git().
authorAndre Noll <maan@tuebingen.mpg.de>
Thu, 1 Jan 2015 18:21:55 +0000 (18:21 +0000)
committerAndre Noll <maan@tuebingen.mpg.de>
Mon, 12 Jan 2015 22:29:07 +0000 (23:29 +0100)
Found by cppcheck.

version.c
version.h

index 151974e596624815cf33cacba5b5881c82cac6f3..b5037909c013ba4cc0fba503168fb94dc1c0c84b 100644 (file)
--- a/version.c
+++ b/version.c
 #include "version.h"
 #include "git-version.h"
 
 #include "version.h"
 #include "git-version.h"
 
-/**
- * Get the raw git version string
- *
- * \return The string generated by the GIT-VERSION-GEN script. It is passed
- * as a preprocessor define during compilation.
- */
-__a_const const char *version_git(void)
-{
-       return GIT_VERSION;
-}
-
 /**
  * Get the version string for an executable.
  *
 /**
  * Get the version string for an executable.
  *
index 3dd5ba2177751e2c9716d4f0cdb99cfc5464c73a..f5282854d72f01a1f19a07185f049a05523e0594 100644 (file)
--- a/version.h
+++ b/version.h
@@ -1,6 +1,5 @@
 /** \file version.h Functions for printing the version string. */
 
 /** \file version.h Functions for printing the version string. */
 
-const char *version_git(void);
 const char *version_single_line(const char *pfx);
 const char *version_text(const char *pfx);
 void version_handle_flag(const char *pfx, bool flag);
 const char *version_single_line(const char *pfx);
 const char *version_text(const char *pfx);
 void version_handle_flag(const char *pfx, bool flag);