Deactivating isMinMemoryReached()
authorPhilipp <admin@philipp.info>
Mon, 1 Nov 2021 12:58:36 +0000 (13:58 +0100)
committerPhilipp <admin@philipp.info>
Fri, 5 Nov 2021 19:52:45 +0000 (20:52 +0100)
src/Core/System.php

index 9002c5a7b370c44c0f97b543ecc55d6396632ca0..44512390617e53008b859e1f229b159c7abf566a 100644 (file)
@@ -106,6 +106,12 @@ class System
         */
        public function isMinMemoryReached(): bool
        {
+               // Deactivated, needs more investigating if this check really makes sense
+               return false;
+
+               /*
+                * Commented out to suppress static analyzer issues
+                *
                $min_memory = $this->config->get('system', 'min_memory', 0);
                if ($min_memory == 0) {
                        return false;
@@ -141,6 +147,7 @@ class System
                }
 
                return $reached;
+                */
        }
 
        /**