Unneccessary sanity checks removed
[shipsimu.git] / inc / classes / middleware / debug / class_DebugMiddleware.php
index ed1f8d03d636f4500e957c4d42a3a8328ac22c22..c67da37468ef84faee79f28ca74d86c6fffdb65a 100644 (file)
@@ -110,18 +110,6 @@ class DebugMiddleware extends BaseMiddleware implements Registerable {
         * @return      void
         */
        public final function output ($outStream) {
-               // Check if the output instance is valid
-               if (is_null($this->outputInstance)) {
-                       // Debug output instance was not set
-                       throw new NullPointerException($this, self::EXCEPTION_IS_NULL_POINTER);
-               } elseif (!is_object($this->outputInstance)) {
-                       // The debug output instance is not an object
-                       throw new NoObjectException($this->ouputInstance, self::EXCEPTION_IS_NO_OBJECT);
-               } elseif (!$this->outputInstance instanceof Debugger) {
-                       // The required method outputStream() is missing
-                       throw new MissingMethodException(array($this->outputInstance, 'outputStream'), self::EXCEPTION_MISSING_METHOD);
-               }
-
                // Is the output stream set
                if (empty($outStream)) {
                        // Initialization phase