Skip to content

Commit

Permalink
Simplify client, remove unneeded init method
Browse files Browse the repository at this point in the history
  • Loading branch information
igorw committed Oct 1, 2012
1 parent fdfaadb commit eea6826
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/React/Whois/Client.php
Expand Up @@ -21,19 +21,13 @@ public function query($domain, $callback)
{
Async::waterfall(
array(
Curry::bind(array($this, 'init'), $domain),
array($this, 'resolveWhoisServer'),
Curry::bind(array($this, 'resolveWhoisServer'), $domain),
Curry::bind(array($this, 'queryWhoisServer'), $domain),
),
$callback
);
}

public function init($domain, $callback)
{
$callback($domain);
}

public function resolveWhoisServer($domain, $callback)
{
$tld = substr(strrchr($domain, '.'), 1);
Expand Down

0 comments on commit eea6826

Please sign in to comment.