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



commit b373592af191f4087b0e2b3cd621b634a11933c3
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 file changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/src/js/ui/mainWindow.js b/src/js/ui/mainWindow.js
index 8993f7d..3f555ed 100644
--- a/src/js/ui/mainWindow.js
+++ b/src/js/ui/mainWindow.js
@@ -158,16 +158,12 @@ var 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]