Skip to content

Commit 8ee30ce

Browse files
committed
Removed superfulous definitions of Object#singleton_class
MRI implemented it in 1.9.2 already.
1 parent 8d25659 commit 8ee30ce

2 files changed

Lines changed: 0 additions & 10 deletions

File tree

lib/dbus/proxy_object.rb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,5 @@ def method_missing(name, *args, &reply_handler)
144144
raise NoMethodError, "undefined method `#{name}' for DBus interface `#{@default_iface}' on object `#{@path}'"
145145
end
146146
end
147-
148-
# Returns the singleton class of the object.
149-
def singleton_class
150-
(class << self ; self ; end)
151-
end
152147
end # class ProxyObject
153148
end

lib/dbus/proxy_object_interface.rb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,6 @@ def to_str
3434
@name
3535
end
3636

37-
# Returns the singleton class of the interface.
38-
def singleton_class
39-
(class << self ; self ; end)
40-
end
41-
4237
# Defines a method on the interface from the Method descriptor _m_.
4338
def define_method_from_descriptor(m)
4439
m.params.each do |fpar|

0 commit comments

Comments
 (0)