commit 0b2c6b76e95fd89a839ffe40846da5be21c3fff2
parent a10516b90e774f2d2393bce459fa671a65f9b1b6
Author: Zeger-Jan van de Weg <mail@zjvandeweg.nl>
Date: Wed, 8 Apr 2015 19:27:41 +0200
to_proc is always defined. Therefore this can be safely removed.
Also see: http://ruby-doc.org/core-2.0.0/Symbol.html#method-i-to_proc
Diffstat:
1 file changed, 0 insertions(+), 9 deletions(-)
diff --git a/lib/sup/util.rb b/lib/sup/util.rb
@@ -10,15 +10,6 @@ require 'benchmark'
require 'unicode'
require 'fileutils'
-## time for some monkeypatching!
-class Symbol
- unless method_defined? :to_proc
- def to_proc
- proc { |obj, *args| obj.send(self, *args) }
- end
- end
-end
-
class Lockfile
def gen_lock_id
Hash[