code: def prune_post_subset(self, ttfFont, options):
      cff = self.cff
      for fontname in cff.keys():
          font = cff[fontname]
          cs = font.CharStrings
  
          # Drop unused FontDictionaries
          if hasattr(font, "FDSelect"):
              sel = font.FDSelect
              indices = _uniq_sort(sel.gidArray)
              sel.gidArray = [indices.index(ss) for ss in sel.gidArray]
              arr = font.FDArray
              arr.items = [arr[i] for i in indices]
              del arr.file, arr.offsets
  
      # Desubroutinize if asked for
      if options.desubroutinize:
          cff.desubroutinize()
  
      # Drop hints if not needed
      if not options.hinting:
          self.remove_hints()
      elif not options.desubroutinize:
          self.remove_unused_subroutines()
      return True
  
imports: from fontTools.misc import psCharStrings
  from fontTools import ttLib
  from fontTools.pens.basePen import NullPen
  from fontTools.misc.roundTools import otRound
  from fontTools.misc.loggingTools import deprecateFunction
  from fontTools.subset.util import _add_method, _uniq_sort
label_desc: Use image node_id 7 for calling a global function with example usage: prune_post_subset(ttfFont, options) and returns: True