summaryrefslogtreecommitdiff
path: root/common.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-07-01 23:28:30 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2015-07-01 23:28:30 +0200
commit51bf132c6ba429be8778c485076e017d98e2876c (patch)
treed2952c74b35ca1f6606162e9ba8d7618c9f73a58 /common.c
parent8d62d9591810b267a1d0d1097ff8d416fbc917c9 (diff)
downloadxK-51bf132c6ba429be8778c485076e017d98e2876c.tar.gz
xK-51bf132c6ba429be8778c485076e017d98e2876c.tar.xz
xK-51bf132c6ba429be8778c485076e017d98e2876c.zip
Bump liberty
Diffstat (limited to 'common.c')
-rw-r--r--common.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/common.c b/common.c
index 3d40816..cc6221e 100644
--- a/common.c
+++ b/common.c
@@ -79,17 +79,6 @@ str_vector_find (const struct str_vector *v, const char *s)
return -1;
}
-static char *
-str_vector_steal (struct str_vector *self, size_t i)
-{
- // TODO: str_vector_remove() is then just free(str_vector_steal())
- hard_assert (i < self->len);
- char *tmp = self->vector[i];
- memmove (self->vector + i, self->vector + i + 1,
- (self->len-- - i) * sizeof *self->vector);
- return tmp;
-}
-
static int
strncasecmp_ascii (const char *a, const char *b, size_t n)
{