diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-01-23 16:23:58 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-01-23 16:23:58 +0000 |
commit | 242f456b41ee718f023e6905f8ed813388d3418d (patch) | |
tree | 0b87817e6097b887cfa97b044ef3325c65bf4aa1 /lualib | |
parent | 641b60481c309655e4c7dfe6d8516020f7280fb3 (diff) | |
download | rspamd-242f456b41ee718f023e6905f8ed813388d3418d.tar.gz rspamd-242f456b41ee718f023e6905f8ed813388d3418d.zip |
[Minor] Remove useless stuff
Diffstat (limited to 'lualib')
-rw-r--r-- | lualib/lua_content/pdf.lua | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/lualib/lua_content/pdf.lua b/lualib/lua_content/pdf.lua index d4ad892e0..1960b3e2f 100644 --- a/lualib/lua_content/pdf.lua +++ b/lualib/lua_content/pdf.lua @@ -715,32 +715,7 @@ process_dict = function(task, pdf, obj, dict) lua_util.debugm(N, task, 'found resources for object %s:%s (%s): %s', obj.major, obj.minor, obj.type, obj.resources) - if obj.type == 'FontDescriptor' then - lua_util.debugm(N, task, "obj %s:%s is a font descriptor", - obj.major, obj.minor) - - local stream_ref - if dict.FontFile then - stream_ref = dereference_object(dict.FontFile, pdf) - end - if dict.FontFile2 then - stream_ref = dereference_object(dict.FontFile2, pdf) - end - if dict.FontFile3 then - stream_ref = dereference_object(dict.FontFile3, pdf) - end - - if stream_ref then - if not stream_ref.dict then - stream_ref.dict = {} - end - stream_ref.dict.type = 'font_data' - stream_ref.dict.ignore = true - - lua_util.debugm(N, task, "obj %s:%s is a font data stream", - stream_ref.major, stream_ref.minor) - end - elseif obj.type == 'Action' then + if obj.type == 'Action' then process_action(task, pdf, obj) elseif obj.type == 'Catalog' then process_catalog(task, pdf, obj) |