Browse files

No need for Symbol#<=> on Ruby 1.9+

This generated a lot of unnecessary memory churn on Ruby >= 1.9
  • Loading branch information...
1 parent 718220a commit 574707883b71fd227fd96874ab916cc0e2740e87 @mathieuravaux mathieuravaux committed Feb 27, 2013
Showing with 0 additions and 7 deletions.
  1. +0 −7 lib/plist/generator.rb
View
7 lib/plist/generator.rb
@@ -214,13 +214,6 @@ def <<(val)
end
end
-# we need to add this so sorting hash keys works properly
-class Symbol #:nodoc:
- def <=> (other)
- self.to_s <=> other.to_s
- end
-end
-
class Array #:nodoc:
include Plist::Emit
end

0 comments on commit 5747078

Please sign in to comment.