aboutsummaryrefslogtreecommitdiffstats
path: root/print.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2004-07-27 19:19:00 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2004-07-27 19:19:00 +0000
commitd9b7597974ee912251b2b4b0e4c291bb3e9c88e3 (patch)
tree3d53abe824228d5543ef06dfcf613c717dede8cf /print.c
parentd1648c8af82a674c2d59e0f640419bc1fbc2737c (diff)
"print_packet_header()" is no longer used (there's now a "generate
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
Diffstat (limited to 'print.c')
-rw-r--r--print.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/print.c b/print.c
index 0fb42cf878..ef993ac698 100644
--- 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)