From 04c5cf09797096727d5575bc04c8968dc5acec66 Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Feb 02 2011 02:43:06 +0000 Subject: get rid of the ugly workaround to not trigger GC in allocating Hpricot object. --- diff --git a/lib/fontpackages/fontconfig.rb b/lib/fontpackages/fontconfig.rb index 424a9ca..d81cad0 100644 --- a/lib/fontpackages/fontconfig.rb +++ b/lib/fontpackages/fontconfig.rb @@ -325,7 +325,6 @@ module FontPackages x.ignore_attributes = @ignore_attributes x.ignore_text = @ignore_text path = xelement.xpath.sub(/\A\//, '').sub(/\[\d+\]\Z/, '') -[] doc = Hpricot.XML(@doc.inner_html) ::FontPackages::Fontconfig.normalize(doc/"fontconfig/*", @ignore_text) if opts.include?(:normalize) && opts[:normalize] yelems = (doc/path).reject do |yelem|