X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Ftext-data-import-dialog.c;h=c4abeaa48b2e8f5b9969972ef5bd9ea7a7201933;hb=9d7b5ca22f6da77accd0314cc71b8f9473ecae89;hp=10dc626609a467f961e04f14a552f871ccea1549;hpb=69f0036106f8f7caa83fb24b0385ba875afb36cd;p=pspp diff --git a/src/ui/gui/text-data-import-dialog.c b/src/ui/gui/text-data-import-dialog.c index 10dc626609..c4abeaa48b 100644 --- a/src/ui/gui/text-data-import-dialog.c +++ b/src/ui/gui/text-data-import-dialog.c @@ -213,7 +213,6 @@ static GtkTreeViewColumn *make_data_column (struct import_assistant *, gint column_idx); static GtkTreeView *create_data_tree_view (bool input, GtkContainer *parent, struct import_assistant *); -static char *escape_underscores (const char *in); static void push_watch_cursor (struct import_assistant *); static void pop_watch_cursor (struct import_assistant *); @@ -2088,24 +2087,6 @@ create_data_tree_view (bool input, GtkContainer *parent, return tree_view; } -static char * -escape_underscores (const char *in) -{ - char *out = xmalloc (2 * strlen (in) + 1); - char *p; - - p = out; - for (; *in != '\0'; in++) - { - if (*in == '_') - *p++ = '_'; - *p++ = *in; - } - *p = '\0'; - - return out; -} - /* Increments the "watch cursor" level, setting the cursor for the assistant window to a watch face to indicate to the user that the ongoing operation may take some time. */