diff --git a/src/Connectors/PhpRedisSentinelConnector.php b/src/Connectors/PhpRedisSentinelConnector.php index 468782f..61d81d4 100644 --- a/src/Connectors/PhpRedisSentinelConnector.php +++ b/src/Connectors/PhpRedisSentinelConnector.php @@ -8,7 +8,6 @@ use Illuminate\Support\Arr; use Namoshek\Redis\Sentinel\Connections\PhpRedisSentinelConnection; use Namoshek\Redis\Sentinel\Exceptions\ConfigurationException; -use Namoshek\Redis\Sentinel\Exceptions\NotImplementedException; use Redis; use RedisException; use RedisSentinel; @@ -36,14 +35,6 @@ public function connect(array $config, array $options): PhpRedisSentinelConnecti return new PhpRedisSentinelConnection($connector(), $connector, $config); } - /** - * {@inheritdoc} - */ - public function connectToCluster(array $config, array $clusterOptions, array $options) - { - throw new NotImplementedException('The Redis Sentinel driver does not support connecting to clusters.'); - } - /** * Create the PhpRedis client instance which connects to Redis Sentinel. * diff --git a/src/Exceptions/NotImplementedException.php b/src/Exceptions/NotImplementedException.php deleted file mode 100644 index b070596..0000000 --- a/src/Exceptions/NotImplementedException.php +++ /dev/null @@ -1,12 +0,0 @@ -expectException(NotImplementedException::class); - - $connector = new PhpRedisSentinelConnector(); - $connector->connectToCluster( - config: [], - clusterOptions: [], - options: [] - ); - } - /** * @throws RedisException */