[sushi/wip/cosimoc/no-clutter: 35/67] utils: remove unused slowdown factor setting



commit 223312ca4502583b77673081d25a126c44a73243
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Mon Apr 3 12:43:55 2017 -0700

    utils: remove unused slowdown factor setting
    
    GTK has its own variable to control this if needed.

 src/js/ui/main.js  |    8 --------
 src/js/ui/utils.js |    6 ------
 2 files changed, 0 insertions(+), 14 deletions(-)
---
diff --git a/src/js/ui/main.js b/src/js/ui/main.js
index 8f86b9c..64717bf 100644
--- a/src/js/ui/main.js
+++ b/src/js/ui/main.js
@@ -29,7 +29,6 @@ const GLib = imports.gi.GLib;
 
 const Application = imports.ui.application;
 const Path = imports.util.path;
-const Utils = imports.ui.utils;
 
 function run(argv) {
     Gettext.bindtextdomain('sushi', Path.LOCALE_DIR);
@@ -37,13 +36,6 @@ function run(argv) {
 
     GLib.set_application_name('Sushi');
 
-    let slowdownEnv = GLib.getenv('SUSHI_SLOWDOWN_FACTOR');
-    if (slowdownEnv) {
-        let factor = parseFloat(slowdownEnv);
-        if (!isNaN(factor) && factor > 0.0)
-            Utils.setSlowDownFactor(factor);
-    }
-
     let application = new Application.Application();
     return application.run(null);
 }
diff --git a/src/js/ui/utils.js b/src/js/ui/utils.js
index 08cc79d..a382bae 100644
--- a/src/js/ui/utils.js
+++ b/src/js/ui/utils.js
@@ -30,12 +30,6 @@ const Lang = imports.lang;
 
 const Constants = imports.util.constants;
 
-let slowDownFactor = 0;
-
-function setSlowDownFactor(factor) {
-    slowDownFactor = factor;
-}
-
 function getScaledSize(baseSize, allocSize, upscale) {
     let allocW = allocSize[0];
     let allocH = allocSize[1];


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]