summaryrefslogtreecommitdiff
path: root/source/html/css-parse.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2014-11-26 02:23:54 +0100
committerTor Andersson <tor.andersson@artifex.com>2014-12-03 12:25:52 +0100
commita3b0ce19561c42cc165a0c459286100af50ba615 (patch)
tree56d88d3674a91ce5a4e157898498c2ce7f11a8c3 /source/html/css-parse.c
parent08a4d6d49f91e295fa6265a91ce030fc9c585922 (diff)
downloadmupdf-a3b0ce19561c42cc165a0c459286100af50ba615.tar.xz
html: Some cleaning.
Diffstat (limited to 'source/html/css-parse.c')
-rw-r--r--source/html/css-parse.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/source/html/css-parse.c b/source/html/css-parse.c
index d454dbf1..d4aa39ec 100644
--- a/source/html/css-parse.c
+++ b/source/html/css-parse.c
@@ -746,24 +746,3 @@ struct rule *fz_parse_css(fz_context *ctx, struct rule *chain, const char *sourc
next(&buf);
return parse_stylesheet(&buf, chain);
}
-
-struct rule *fz_parse_css_file(fz_context *ctx, struct rule *chain, const char *filename)
-{
- fz_buffer *buf = fz_read_file(ctx, filename);
-
- fz_try(ctx)
- {
- fz_write_buffer_byte(ctx, buf, 0);
- chain = fz_parse_css(ctx, chain, (char*)buf->data);
- }
- fz_always(ctx)
- {
- fz_drop_buffer(ctx, buf);
- }
- fz_catch(ctx)
- {
- fz_rethrow(ctx);
- }
-
- return chain;
-}