Permalink
Browse files

Removed useless "callbacks" in Resolver class.

  • Loading branch information...
1 parent 7367d47 commit d06a31ca8c827c11699ebe21825f6d936c2c5348 @ibc committed Apr 11, 2012
Showing with 2 additions and 18 deletions.
  1. +1 −17 lib/em-udns/resolver.rb
  2. +1 −1 lib/em-udns/version.rb
View
@@ -7,28 +7,12 @@ def initialize
dns_open
end
- def callback &block
- @on_success_block = block
- end
-
- def errback &block
- @on_error_block = block
- end
-
private
-
+
def set_timer(timeout)
@timer = EM::Timer.new(timeout) { timeouts }
end
-
- def do_success result
- @on_success_block && @on_success_block.call(result)
- end
-
- def do_error error
- @on_error_block && @on_error_block.call(error)
- end
end
end
View
@@ -1,5 +1,5 @@
module EventMachine
module Udns
- VERSION = "0.3.5"
+ VERSION = "0.3.6"
end
end

0 comments on commit d06a31c

Please sign in to comment.