]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Remove useless stuff
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 23 Jan 2020 16:23:58 +0000 (16:23 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 23 Jan 2020 16:23:58 +0000 (16:23 +0000)
lualib/lua_content/pdf.lua

index d4ad892e03a7571500c5b5d32b1ab5c6a099b269..1960b3e2f466891011c1647748b818551ffdea2a 100644 (file)
@@ -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)