aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2006-08-26 00:08:51 +0000
committerGuy Harris <guy@alum.mit.edu>2006-08-26 00:08:51 +0000
commit96b7baf4cf78c79777024e43dae721332cb568e9 (patch)
treec6dc3ce8088d5d6eb4426687ccbfc8b5a22afa4f
parentb65c263be51cb9141eb1f0b1abf04b7d94c4fae2 (diff)
Get rid of aun unused routine.
svn path=/trunk/; revision=19040
-rw-r--r--gtk/firewall_dlg.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/gtk/firewall_dlg.c b/gtk/firewall_dlg.c
index 0a348a6e70..6faecf39f6 100644
--- a/gtk/firewall_dlg.c
+++ b/gtk/firewall_dlg.c
@@ -687,39 +687,6 @@ firewall_destroy_cb(GtkWidget *w, gpointer data _U_)
g_free(rule_info);
}
-/*
- * XXX - for text printing, we probably want to wrap lines at 80 characters;
- * (PostScript printing is doing this already), and perhaps put some kind of
- * dingbat (to use the technical term) to indicate a wrapped line, along the
- * lines of what's done when displaying this in a window, as per Warren Young's
- * suggestion.
- */
-static gboolean
-rule_print_text(char *buffer, size_t nchars, gboolean is_server _U_, void *arg)
-{
- print_stream_t *stream = arg;
- size_t i;
- char *str;
-
- /* convert non printable characters */
- for (i = 0; i < nchars; i++) {
- if (buffer[i] == '\n' || buffer[i] == '\r')
- continue;
- if (! isprint((guchar)buffer[i])) {
- buffer[i] = '.';
- }
- }
-
- /* convert unterminated char array to a zero terminated string */
- str = g_malloc(nchars + 1);
- memcpy(str, buffer, nchars);
- str[nchars] = 0;
- print_line(stream, /*indent*/ 0, str);
- g_free(str);
-
- return TRUE;
-}
-
static void
firewall_copy_cmd_cb(GtkWidget *w _U_, gpointer data)
{