Remove useless helpers.

This commit is contained in:
Daniele Alessandri
2012-07-25 21:18:58 +02:00
parent 89d6c0e9b6
commit c3cafaa9a6
6 changed files with 17 additions and 48 deletions
+2 -2
View File
@@ -12,8 +12,8 @@
namespace Predis\Monitor;
use Predis\ClientInterface;
use Predis\Helpers;
use Predis\NotSupportedException;
use Predis\Connection\AggregatedConnectionInterface;
/**
* Client-side abstraction of a Redis MONITOR context.
@@ -52,7 +52,7 @@ class MonitorContext implements \Iterator
*/
private function checkCapabilities(ClientInterface $client)
{
if (Helpers::isCluster($client->getConnection())) {
if ($client->getConnection() instanceof AggregatedConnectionInterface) {
throw new NotSupportedException('Cannot initialize a monitor context over a cluster of connections');
}