diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2008-04-29 12:40:03 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2008-04-29 12:40:03 +0300 |
commit | cde5bfe5180906783ca26257e05349d82f8d9272 (patch) | |
tree | ba1ea6c72a500ed9a3c5e6bc694ba95bac8099c6 | |
parent | b2e875be7822947a5a9db063a234e67fd5f2261c (diff) | |
download | rpm-cde5bfe5180906783ca26257e05349d82f8d9272.tar.gz rpm-cde5bfe5180906783ca26257e05349d82f8d9272.tar.bz2 rpm-cde5bfe5180906783ca26257e05349d82f8d9272.zip |
This code has been commented out since -99, time to let go...
-rw-r--r-- | rpmdb/header.c | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/rpmdb/header.c b/rpmdb/header.c index c382f1f4a..702bed611 100644 --- a/rpmdb/header.c +++ b/rpmdb/header.c @@ -1221,42 +1221,6 @@ static int headerMatchLocale(const char *td, const char *l, const char *le) { const char *fe; - -#if 0 - { const char *s, *ll, *CC, *EE, *dd; - char *lbuf, *t. - - /* Copy the buffer and parse out components on the fly. */ - lbuf = alloca(le - l + 1); - for (s = l, ll = t = lbuf; *s; s++, t++) { - switch (*s) { - case '_': - *t = '\0'; - CC = t + 1; - break; - case '.': - *t = '\0'; - EE = t + 1; - break; - case '@': - *t = '\0'; - dd = t + 1; - break; - default: - *t = *s; - break; - } - } - - if (ll) /* ISO language should be lower case */ - for (t = ll; *t; t++) *t = tolower(*t); - if (CC) /* ISO country code should be upper case */ - for (t = CC; *t; t++) *t = toupper(*t); - - /* There are a total of 16 cases to attempt to match. */ - } -#endif - /* First try a complete match. */ if (strlen(td) == (le-l) && !strncmp(td, l, (le - l))) return 1; |