From: Andre Noll Date: Thu, 1 Jan 2015 18:21:55 +0000 (+0000) Subject: version.c: Remove unused version_git(). X-Git-Tag: v0.5.4~21 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=712cb2cb6155ba39fe607980e419ec862bfe1d91;ds=sidebyside version.c: Remove unused version_git(). Found by cppcheck. --- diff --git a/version.c b/version.c index 151974e5..b5037909 100644 --- a/version.c +++ b/version.c @@ -10,17 +10,6 @@ #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. * diff --git a/version.h b/version.h index 3dd5ba21..f5282854 100644 --- a/version.h +++ b/version.h @@ -1,6 +1,5 @@ /** \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);