projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1f7a50b
)
version.c: Remove unused version_git().
author
Andre Noll
<maan@tuebingen.mpg.de>
Thu, 1 Jan 2015 18:21:55 +0000
(18:21 +0000)
committer
Andre Noll
<maan@tuebingen.mpg.de>
Mon, 12 Jan 2015 22:29:07 +0000
(23:29 +0100)
Found by cppcheck.
version.c
patch
|
blob
|
history
version.h
patch
|
blob
|
history
diff --git
a/version.c
b/version.c
index 151974e596624815cf33cacba5b5881c82cac6f3..b5037909c013ba4cc0fba503168fb94dc1c0c84b 100644
(file)
--- a/
version.c
+++ b/
version.c
@@
-10,17
+10,6
@@
#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.
*
diff --git
a/version.h
b/version.h
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);