"print_packet_header()" is no longer used (there's now a "generate
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 27 Jul 2004 19:19:00 +0000 (19:19 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 27 Jul 2004 19:19:00 +0000 (19:19 +0000)
bookmark" op in the lower-level print functions), so remove it.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11543 f5534014-38df-0310-8fa8-9805f1628bb7

print.c
print.h

diff --git a/print.c b/print.c
index 0fb42cf878ead2e2ee904fed3d913f02f7d7bd34..ef993ac698e49741b36cec5baee9e8d02d7f1276 100644 (file)
--- a/print.c
+++ b/print.c
@@ -780,40 +780,6 @@ void ps_clean_string(unsigned char *out, const unsigned char *in,
        }
 }
 
-void
-print_packet_header(FILE *fh, print_format_e format, guint32 number, gchar *summary) {
-       char            psbuffer[MAX_PS_LINE_LENGTH]; /* static sized buffer! */
-
-       switch (format) {
-
-       case(PR_FMT_TEXT):
-               /* do nothing */
-               break;
-
-       case(PR_FMT_PS):
-               ps_clean_string(psbuffer, summary, MAX_PS_LINE_LENGTH);
-               /*
-                * See the Adobe "pdfmark reference".  The pdfmark stuff
-                * tells code that turns PostScript into PDF stuff that
-                * it should do.
-                *
-                * The /OUT stuff creates a bookmark that goes to the
-                * destination with the name "__frame{N}__", where N is
-                * the "number" argument, and with "summary" as the title.
-                *
-                * The "/DEST" creates the destination.
-                */
-               fprintf(fh, "[/Dest /__frame%u__ /Title (%s)   /OUT pdfmark\n", number, psbuffer);
-               fputs("[/View [/XYZ -4 currentpoint matrix currentmatrix matrix defaultmatrix\n", fh);
-               fputs("matrix invertmatrix matrix concatmatrix transform exch pop 20 add null]\n", fh);
-               fprintf(fh, "/Dest /__frame%u__ /DEST pdfmark\n", number);
-               break;
-
-       default:
-               g_assert_not_reached();
-       }
-}
-
 /* Some formats need stuff at the beginning of the output */
 gboolean
 print_preamble(print_stream_t *self, gchar *filename)
diff --git a/print.h b/print.h
index d131f18f9155bd39431ff5b4152c687f25bf1c7c..3a0848cc2bbe09d61af1a8645c3552ca2ebe49b6 100644 (file)
--- a/print.h
+++ b/print.h
@@ -98,7 +98,6 @@ typedef struct print_stream {
 extern gboolean proto_tree_print(print_args_t *print_args, epan_dissect_t *edt,
      print_stream_t *stream);
 extern gboolean print_hex_data(print_stream_t *stream, epan_dissect_t *edt);
-extern void print_packet_header(FILE *fh, print_format_e format, guint32 number, gchar *summary);
 
 extern print_stream_t *print_stream_text_new(int to_file, const char *dest);
 extern print_stream_t *print_stream_text_stdio_new(FILE *fh);