Skip to content

Commit df1c280

Browse files
src/extra.i: removed some unused code.
1 parent d7228b9 commit df1c280

File tree

1 file changed

+0
-39
lines changed

1 file changed

+0
-39
lines changed

src/extra.i

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -2216,53 +2216,14 @@ static int JM_rects_overlap(const fz_rect a, const fz_rect b)
22162216

22172217
//
22182218
void JM_append_rune(fz_buffer *buff, int ch);
2219-
void ll_JM_print_stext_page_as_text(fz_buffer *res, fz_stext_page *page)
2220-
{
2221-
fz_stext_block *block;
2222-
fz_stext_line *line;
2223-
fz_stext_char *ch;
2224-
fz_rect rect = page->mediabox;
2225-
fz_rect chbbox;
2226-
int last_char = 0;
2227-
22282219

2229-
for (block = page->first_block; block; block = block->next)
2230-
{
2231-
if (block->type == FZ_STEXT_BLOCK_TEXT)
2232-
{
2233-
for (line = block->u.t.first_line; line; line = line->next)
2234-
{
2235-
last_char = 0;
2236-
for (ch = line->first_char; ch; ch = ch->next)
2237-
{
2238-
chbbox = JM_char_bbox(line, ch);
2239-
if (mupdf::ll_fz_is_infinite_rect(rect) ||
2240-
JM_rects_overlap(rect, chbbox))
2241-
{
2242-
last_char = ch->c;
2243-
JM_append_rune(res, last_char);
2244-
}
2245-
}
2246-
if (last_char != 10 && last_char > 0)
2247-
{
2248-
mupdf::ll_fz_append_string(res, "\n");
2249-
}
2250-
}
2251-
}
2252-
}
2253-
}
22542220
//-----------------------------------------------------------------------------
22552221
// Plain text output. An identical copy of fz_print_stext_page_as_text,
22562222
// but lines within a block are concatenated by space instead a new-line
22572223
// character (which else leads to 2 new-lines).
22582224
//-----------------------------------------------------------------------------
22592225
void JM_print_stext_page_as_text(mupdf::FzBuffer& res, mupdf::FzStextPage& page)
22602226
{
2261-
if (0)
2262-
{
2263-
return ll_JM_print_stext_page_as_text(res.m_internal, page.m_internal);
2264-
}
2265-
22662227
fz_rect rect = page.m_internal->mediabox;
22672228

22682229
for (auto block: page)

0 commit comments

Comments
 (0)