atom: drop {xkb_,}atom_strdup
authorRan Benita <ran234@gmail.com>
Mon, 2 Dec 2013 12:14:41 +0000 (14:14 +0200)
committerRan Benita <ran234@gmail.com>
Mon, 2 Dec 2013 12:14:41 +0000 (14:14 +0200)
Even though in 112cccb18ad1bc877b3c4a87fa536ea085c761b5 I said it might
be useful, it's not. So remove it.

Signed-off-by: Ran Benita <ran234@gmail.com>
src/atom.c
src/atom.h
src/context.c
src/context.h

index a7033c4..dc6e794 100644 (file)
@@ -134,12 +134,6 @@ atom_text(struct atom_table *table, xkb_atom_t atom)
     return darray_item(table->table, atom)->string;
 }
 
-char *
-atom_strdup(struct atom_table *table, xkb_atom_t atom)
-{
-    return strdup_safe(atom_text(table, atom));
-}
-
 static bool
 find_node_pointer(struct atom_table *table, const char *string, size_t len,
                   struct atom_node ***nodep_out, unsigned int *fingerprint_out)
index 94c1494..1bf8e49 100644 (file)
@@ -43,9 +43,6 @@ xkb_atom_t
 atom_intern(struct atom_table *table, const char *string, size_t len,
             bool steal);
 
-char *
-atom_strdup(struct atom_table *table, xkb_atom_t atom);
-
 const char *
 atom_text(struct atom_table *table, xkb_atom_t atom);
 
index bf76ac2..6ecc4b3 100644 (file)
@@ -345,12 +345,6 @@ xkb_atom_steal(struct xkb_context *ctx, char *string)
     return atom_intern(ctx->atom_table, string, strlen(string), true);
 }
 
-char *
-xkb_atom_strdup(struct xkb_context *ctx, xkb_atom_t atom)
-{
-    return atom_strdup(ctx->atom_table, atom);
-}
-
 const char *
 xkb_atom_text(struct xkb_context *ctx, xkb_atom_t atom)
 {
index c9bb277..67e68d9 100644 (file)
@@ -57,9 +57,6 @@ xkb_atom_intern(struct xkb_context *ctx, const char *string, size_t len);
 xkb_atom_t
 xkb_atom_steal(struct xkb_context *ctx, char *string);
 
-char *
-xkb_atom_strdup(struct xkb_context *ctx, xkb_atom_t atom);
-
 const char *
 xkb_atom_text(struct xkb_context *ctx, xkb_atom_t atom);