str: Add function xstrdup_if_nonnull() and introduce many users.
[pspp] / src / output / pivot-table.c
index 1b3014c629694900d0336007f6a19d8efb08429d..3698b78559037a955e949a2c56ce7201b03897da 100644 (file)
@@ -913,12 +913,6 @@ pivot_table_ref (const struct pivot_table *table_)
   return table;
 }
 
-static char *
-xstrdup_if_nonnull (const char *s)
-{
-  return s ? xstrdup (s) : NULL;
-}
-
 static struct pivot_table_sizing
 clone_sizing (const struct pivot_table_sizing *s)
 {