summaryrefslogtreecommitdiff
path: root/xkbpath.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@redhat.com>2008-08-18 16:28:44 +0930
committerPeter Hutterer <peter.hutterer@redhat.com>2008-08-18 17:40:27 +0930
commit1aad2a5d8ede9fe5212a4e6087fbe34aa170ac54 (patch)
tree2e9e55f4713045135d06581bc0725e7ed08f8626 /xkbpath.c
parent7aef93914e1d6446f64aa42eafa18375c2cb4bed (diff)
downloadxorg-app-xkbcomp-1aad2a5d8ede9fe5212a4e6087fbe34aa170ac54.tar.gz
Remove useless longestPath variable.
Diffstat (limited to 'xkbpath.c')
-rw-r--r--xkbpath.c4
1 files changed, 0 insertions, 4 deletions
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;