summaryrefslogtreecommitdiff
path: root/src/common/sysinfo.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2015-12-26 02:31:28 +0100
committerHaru <haru@dotalux.com>2016-05-08 19:53:58 +0200
commite4bb280177b6f6f041c639c9a7fb1c838acb03b3 (patch)
tree0492f7b4c2fe366bde393c3f7d06c42d7773bdfd /src/common/sysinfo.c
parentca3abf6b4974f097b6a212ef5c69439db3cc5967 (diff)
downloadhercules-e4bb280177b6f6f041c639c9a7fb1c838acb03b3.tar.gz
hercules-e4bb280177b6f6f041c639c9a7fb1c838acb03b3.tar.bz2
hercules-e4bb280177b6f6f041c639c9a7fb1c838acb03b3.tar.xz
hercules-e4bb280177b6f6f041c639c9a7fb1c838acb03b3.zip
Removed some old Subversion <=1.6 support code
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/common/sysinfo.c')
-rw-r--r--src/common/sysinfo.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/src/common/sysinfo.c b/src/common/sysinfo.c
index 95f423ff7..aeb8d8e71 100644
--- a/src/common/sysinfo.c
+++ b/src/common/sysinfo.c
@@ -291,40 +291,6 @@ bool sysinfo_svn_get_revision(char **out) {
if (*out != NULL)
return true;
}
-
- // subversion 1.6 and older?
- if ((fp = fopen(".svn/entries", "r")) != NULL) {
- char line[1024];
- int rev;
- // Check the version
- if (fgets(line, sizeof(line), fp)) {
- if (!ISDIGIT(line[0])) {
- // XML File format
- while (fgets(line,sizeof(line),fp))
- if (strstr(line,"revision=")) break;
- if (sscanf(line," %*[^\"]\"%d%*[^\n]", &rev) == 1) {
- if (*out != NULL)
- aFree(*out);
- *out = aCalloc(1, 8);
- snprintf(*out, 8, "%d", rev);
- }
- } else {
- // Bin File format
- if (fgets(line, sizeof(line), fp) == NULL) { printf("Can't get bin name\n"); } // Get the name
- if (fgets(line, sizeof(line), fp) == NULL) { printf("Can't get entries kind\n"); } // Get the entries kind
- if (fgets(line, sizeof(line), fp)) { // Get the rev numver
- if (*out != NULL)
- aFree(*out);
- *out = aCalloc(1, 8);
- snprintf(*out, 8, "%d", atoi(line));
- }
- }
- }
- fclose(fp);
-
- if (*out != NULL)
- return true;
- }
#endif
if (*out != NULL)
aFree(*out);