diff --git a/tools/sexp-conv.c b/tools/sexp-conv.c
index b0d9ef808776013bba4f54f41e587bf65945e8f3..f43f27d237eaef84694412e5b3c883d617fdd8e3 100644
--- a/tools/sexp-conv.c
+++ b/tools/sexp-conv.c
@@ -54,19 +54,6 @@
 
 #define BUG_ADDRESS "nettle-bugs@lists.lysator.liu.se"
 
-static void *
-xalloc(size_t size)
-{
-  void *p = malloc(size);
-  if (!p)
-    {
-      fprintf(stderr, "Virtual memory exhausted.\n");
-      abort();
-    }
-
-  return p;
-}
-
 
 /* Conversion functions. */