[sushi/wip/cosimoc/no-clutter] mainWindow: fold function into only caller



commit a0af800daa8bdb05a769d89cbb1fa6afe2868347
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Sun Apr 9 11:28:59 2017 -0700

    mainWindow: fold function into only caller

 src/js/ui/mainWindow.js |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/src/js/ui/mainWindow.js b/src/js/ui/mainWindow.js
index f4ba6d7..fb25efe 100644
--- a/src/js/ui/mainWindow.js
+++ b/src/js/ui/mainWindow.js
@@ -167,16 +167,12 @@ const MainWindow = new Lang.Class({
     /**************************************************************************
      *********************** texture allocation *******************************
      **************************************************************************/
-    _getWindowSize : function() {
-        return this._renderer.getSizeForAllocation(
-            [Constants.VIEW_MAX_W, Constants.VIEW_MAX_H]);
-    },
-
     _resizeWindow : function() {
         if (this._isFullScreen)
             return;
 
-        let windowSize = this._getWindowSize();
+        let windowSize = this._renderer.getSizeForAllocation(
+            [Constants.VIEW_MAX_W, Constants.VIEW_MAX_H]);
         if (windowSize[0] <= 0 || windowSize[1] <= 0)
             return;
 


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