diff --git a/src/Filter/FilterPluginManager.php b/src/Filter/FilterPluginManager.php deleted file mode 100644 index 80b24c32..00000000 --- a/src/Filter/FilterPluginManager.php +++ /dev/null @@ -1,77 +0,0 @@ - 'Zend\I18n\Filter\NumberFormat', - ); - - /** - * Validate the plugin - * - * Checks that the filter loaded is either a valid callback or an instance - * of FilterInterface. - * - * @param mixed $plugin - * @return void - * @throws Exception\RuntimeException if invalid - */ - public function validatePlugin($plugin) - { - if ($plugin instanceof FilterInterface) { - // we're okay - return; - } - if (is_callable($plugin)) { - // also okay - return; - } - - throw new Exception\RuntimeException(sprintf( - 'Plugin of type %s is invalid; must implement %s\FilterInterface or be callable', - (is_object($plugin) ? get_class($plugin) : gettype($plugin)), - __NAMESPACE__ - )); - } -}