aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/public/Util.php10
-rw-r--r--tests/lib/UtilTest.php4
2 files changed, 2 insertions, 12 deletions
diff --git a/lib/public/Util.php b/lib/public/Util.php
index 61b8d9369cc..f8d8b1aaf71 100644
--- a/lib/public/Util.php
+++ b/lib/public/Util.php
@@ -597,14 +597,4 @@ class Util {
}
return $temp;
}
-
- /**
- * Reset scripts and scriptDeps to empty arrays.
- * Only used in tests.
- * @since 24.0.0
- */
- public static function clearScriptsState() {
- self::$scripts = [];
- self::$scriptDeps = [];
- }
}
diff --git a/tests/lib/UtilTest.php b/tests/lib/UtilTest.php
index 4734898a787..90bdb5708df 100644
--- a/tests/lib/UtilTest.php
+++ b/tests/lib/UtilTest.php
@@ -224,17 +224,17 @@ class UtilTest extends \Test\TestCase {
parent::setUp();
\OC_Util::$scripts = [];
- \OCP\Util::clearScriptsState();
\OC_Util::$styles = [];
self::invokePrivate(\OCP\Util::class, 'scripts', [[]]);
+ self::invokePrivate(\OCP\Util::class, 'scriptsDeps', [[]]);
}
protected function tearDown(): void {
parent::tearDown();
\OC_Util::$scripts = [];
- \OCP\Util::clearScriptsState();
\OC_Util::$styles = [];
self::invokePrivate(\OCP\Util::class, 'scripts', [[]]);
+ self::invokePrivate(\OCP\Util::class, 'scriptsDeps', [[]]);
}
public function testAddScript() {