=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/Attic/util.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- src/usr.bin/tmux/Attic/util.c 2009/06/01 22:58:49 1.1 +++ src/usr.bin/tmux/Attic/util.c 2009/06/03 19:37:27 1.2 @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.1 2009/06/01 22:58:49 nicm Exp $ */ +/* $OpenBSD: util.c,v 1.2 2009/06/03 19:37:27 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott @@ -49,24 +49,4 @@ xasprintf(&s, "%s%.*s%s", first == 0 ? "" : "...", (int) (last - first), buf + first, last == len ? "" : "..."); return (s); -} - -/* Clean string of invisible characters. */ -void -clean_string(const char *in, char *buf, size_t len) -{ - const u_char *cp; - size_t off; - - off = 0; - for (cp = in; *cp != '\0'; cp++) { - if (off >= len) - break; - if (*cp >= 0x20 && *cp <= 0x7f) - buf[off++] = *cp; - else - off += xsnprintf(buf + off, len - off, "\\%03hho", *cp); - } - if (off < len) - buf[off] = '\0'; }