diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-01-23 16:33:20 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-01-23 16:33:20 +0000 |
commit | 8641e1a580314988f5c80572c3507509313ab2f7 (patch) | |
tree | bbb113dbf3af181e34fb47586717489219ebae9f /lualib/lua_content | |
parent | 242f456b41ee718f023e6905f8ed813388d3418d (diff) | |
download | rspamd-8641e1a580314988f5c80572c3507509313ab2f7.tar.gz rspamd-8641e1a580314988f5c80572c3507509313ab2f7.zip |
[Minor] Pet luacheck
Diffstat (limited to 'lualib/lua_content')
-rw-r--r-- | lualib/lua_content/pdf.lua | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/lualib/lua_content/pdf.lua b/lualib/lua_content/pdf.lua index 1960b3e2f..760f042c0 100644 --- a/lualib/lua_content/pdf.lua +++ b/lualib/lua_content/pdf.lua @@ -377,20 +377,6 @@ local function maybe_dereference_object(elt, pdf, task) return elt end --- Enforced dereference -local function dereference_object(elt, pdf) - if type(elt) == 'table' and elt[1] == '%REF%' then - local ref = obj_ref(elt[2], elt[3]) - - if pdf.ref[ref] then - -- Not a dict but the object! - return pdf.ref[ref] - end - end - - return nil -end - -- Apply PDF stream filter local function apply_pdf_filter(input, filt) if filt == 'FlateDecode' then |