"print_packet_header()" is no longer used (there's now a "generate

bookmark" op in the lower-level print functions), so remove it.

svn path=/trunk/; revision=11543
This commit is contained in:
Guy Harris 2004-07-27 19:19:00 +00:00
parent 4c8f04671b
commit d03b6c614a
2 changed files with 0 additions and 35 deletions

34
print.c
View File

@ -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)

View File

@ -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);