From 9168e2fc63f7e0384e6d4d6cf4c568544c3e41a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Wed, 5 Apr 2023 17:27:21 +0200 Subject: [PATCH] environment: Remove old compatibility code St.set_slow_down_factor() has been deprecated for over 3 years (since 3.34). That's plenty of time for extensions to switch to St.Settings.get().slow_down_factor. Part-of: --- js/ui/environment.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/js/ui/environment.js b/js/ui/environment.js index 224456d6a..353cd35f6 100644 --- a/js/ui/environment.js +++ b/js/ui/environment.js @@ -398,12 +398,6 @@ function init() { return Shell.util_touch_file_finish(this, result); }; - St.set_slow_down_factor = function (factor) { - let { stack } = new Error(); - log(`St.set_slow_down_factor() is deprecated, use St.Settings.slow_down_factor\n${stack}`); - St.Settings.get().slow_down_factor = factor; - }; - let origToString = Object.prototype.toString; Object.prototype.toString = function () { let base = origToString.call(this);