From 1aad2a5d8ede9fe5212a4e6087fbe34aa170ac54 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 18 Aug 2008 16:28:44 +0930 Subject: Remove useless longestPath variable. --- xkbpath.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'xkbpath.c') diff --git a/xkbpath.c b/xkbpath.c index 74ae850..dcab317 100644 --- a/xkbpath.c +++ b/xkbpath.c @@ -45,7 +45,6 @@ #define PATH_CHUNK 8 /* initial szPath */ static Bool noDefaultPath = False; -static int longestPath; static int szPath; /* number of entries allocated for includePath */ static int nPathEntries; /* number of actual entries in includePath */ static char **includePath; /* Holds all directories we might be including data from */ @@ -197,7 +196,6 @@ XkbClearIncludePath(void) } } nPathEntries = 0; - longestPath = 0; } noDefaultPath = True; return; @@ -226,8 +224,6 @@ XkbAddDirectoryToPath(const char *dir) dir, PATH_MAX - 3); return False; } - if (len > longestPath) - longestPath = len; if (nPathEntries >= szPath) { szPath += PATH_CHUNK; -- cgit v1.2.3