summaryrefslogtreecommitdiff
path: root/src/shared/utf8.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-11-07 03:06:37 +0100
committerLennart Poettering <lennart@poettering.net>2013-11-07 03:06:37 +0100
commit23c62e05b3954350495bf63b45fb5d846c2030a0 (patch)
tree7483a92339222242b48f7f141776bbb7378dfb56 /src/shared/utf8.c
parent102d8f8169427cb68cdebf5ee0f0e07788e9c2b2 (diff)
utf8: ascii_filter() is unused, let's remove it
Diffstat (limited to 'src/shared/utf8.c')
-rw-r--r--src/shared/utf8.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/shared/utf8.c b/src/shared/utf8.c
index 98b68ef657..aedf6e29ea 100644
--- a/src/shared/utf8.c
+++ b/src/shared/utf8.c
@@ -184,27 +184,6 @@ char *ascii_is_valid(const char *str) {
return (char*) str;
}
-char *ascii_filter(const char *str) {
- const char *s;
- char *r, *d;
- size_t l;
-
- assert(str);
-
- l = strlen(str);
- r = malloc(l + 1);
- if (!r)
- return NULL;
-
- for (s = str, d = r; *s; s++)
- if ((unsigned char) *s < 128)
- *(d++) = *s;
-
- *d = 0;
-
- return r;
-}
-
char *utf16_to_utf8(const void *s, size_t length) {
char *r;
const uint8_t *f;