From 712cb2cb6155ba39fe607980e419ec862bfe1d91 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Thu, 1 Jan 2015 18:21:55 +0000 Subject: [PATCH] version.c: Remove unused version_git(). Found by cppcheck. --- version.c | 11 ----------- version.h | 1 - 2 files changed, 12 deletions(-) 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); -- 2.39.5