From 60fb6c96ca2cabb7e70676e783b0dbdeee1e4196 Mon Sep 17 00:00:00 2001 From: Frode Petterson Date: Fri, 15 Mar 2019 13:04:34 +0100 Subject: [PATCH] JI-1062 Remove unused code --- h5p.classes.php | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/h5p.classes.php b/h5p.classes.php index f7e221a..04fe35e 100644 --- a/h5p.classes.php +++ b/h5p.classes.php @@ -965,26 +965,6 @@ class H5PValidator { } } - // Validate the data from h5p.json - if ($skipContent === FALSE) { - $frameworkValidation = $this->h5pF->validateLibrary($mainH5pData); - if (!$frameworkValidation->valid) { - $message = $this->h5pF->t('Validation of the main library failed.'); - $code = null; - - if (isset($frameworkValidation->message)) { - $message = $frameworkValidation->message; - } - - if (isset($frameworkValidation->code)) { - $code = $frameworkValidation->code; - } - - $this->h5pF->setErrorMessage($message, $code); - $valid = FALSE; - } - } - if ($valid) { if ($upgradeOnly) { // When upgrading, we only add the already installed libraries, and