def cleanup(site, stitch)

      files = stitch.all_files.map{ |f| File.absolute_path(f)}
      files.concat stitch.deleted

      if files.size > 0
        site.static_files.clone.each do |sf|
          if sf.kind_of?(Jekyll::StaticFile) and files.include? sf.path
            site.static_files.delete(sf)
          end
        end
      end
    end
def cleanup(site, stitch)

      files = stitch.all_files.map{ |f| File.absolute_path(f)}
      files.concat stitch.deleted

      if files.size > 0
        site.static_files.clone.each do |sf|
          if sf.kind_of?(Jekyll::StaticFile) and files.include? sf.path
            site.static_files.delete(sf)
          end
        end
      end
    end
Remove files from Jekyll's static_files array