]> git.mxchange.org Git - shipsimu.git/blobdiff - inc/classes/main/template/class_BaseTemplateEngine.php
Unneccessary sanity checks removed
[shipsimu.git] / inc / classes / main / template / class_BaseTemplateEngine.php
index c0b8899b1a9d4f4f9aab0142380d2cdca3d178bf..aa5b2aba19c47a6b0ff84db8a22ce500c495bfe3 100644 (file)
@@ -531,27 +531,11 @@ class BaseTemplateEngine extends BaseFrameworkSystem {
         *
         * @param       $fqfn   The full-qualified file name for a template
         * @return      void
-        * @throws      NullPointerException    If $inputInstance is null
-        * @throws      NoObjectException               If $inputInstance is not an object
-        * @throws      MissingMethodException  If $inputInstance is missing a
-        *                                                                      required method
         */
        private function loadRawTemplateData ($fqfn) {
                // Get a input/output instance from the middleware
                $ioInstance = $this->getFileIoInstance();
 
-               // Validate the instance
-               if (is_null($ioInstance)) {
-                       // Throw exception
-                       throw new NullPointerException($this, self::EXCEPTION_IS_NULL_POINTER);
-               } elseif (!is_object($ioInstance)) {
-                       // Throw another exception
-                       throw new NoObjectException($ioInstance, self::EXCEPTION_IS_NO_OBJECT);
-               } elseif (!method_exists($ioInstance, 'loadFileContents')) {
-                       // Throw yet another exception
-                       throw new MissingMethodException(array($ioInstance, 'loadFileContents'), self::EXCEPTION_MISSING_METHOD);
-               }
-
                // Some debug code to look on the file which is being loaded
                //* DEBUG: */ echo __METHOD__.": FQFN=".$fqfn."<br />\n";