[sushi/wip/cosimoc/no-clutter: 23/50] utils: remove unused code



commit e6d02be7ee7bc1cda4b4f714ebb8d2591fd84f68
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Mon Apr 3 12:41:19 2017 -0700

    utils: remove unused code

 src/js/ui/main.js  |  8 --------
 src/js/ui/utils.js | 13 -------------
 2 files changed, 21 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 c4b37c6..05a4fee 100644
--- a/src/js/ui/utils.js
+++ b/src/js/ui/utils.js
@@ -28,12 +28,6 @@ const Gtk = imports.gi.Gtk;
 
 const Lang = imports.lang;
 
-var slowDownFactor = 0;
-
-function setSlowDownFactor(factor) {
-    slowDownFactor = factor;
-}
-
 function getScaledSize(baseSize, allocSize, upscale) {
     let allocW = allocSize[0];
     let allocH = allocSize[1];
@@ -120,10 +114,3 @@ function formatTimeString(timeVal) {
 
     return str;
 }
-
-function alphaGtkWidget(widget) {
-    widget.override_background_color(0, new Gdk.RGBA({ red: 0,
-                                                       green: 0,
-                                                       blue: 0,
-                                                       alpha: 0 }));
-}


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