From 745c81b08b99cf6b862e6a8ba0c6e81efbb377bf Mon Sep 17 00:00:00 2001 From: Fabian Homborg <FHomborg@gmail.com> Date: Fri, 16 Aug 2013 11:59:39 +0200 Subject: [PATCH] Remove some prints Prevents .xsession-errors from getting big. --- contents/code/spirallayout.js | 3 --- contents/code/tilelist.js | 7 ------- contents/code/tilingmanager.js | 1 - 3 files changed, 11 deletions(-) diff --git a/contents/code/spirallayout.js b/contents/code/spirallayout.js index 57d50a3..aeef8a6 100644 --- a/contents/code/spirallayout.js +++ b/contents/code/spirallayout.js @@ -48,7 +48,6 @@ SpiralLayout.prototype.resetTileSizes = function() { } SpiralLayout.prototype.addTile = function() { - //print("SpiralLayout: addTile"); if (this.tiles.length == 0) { // The first tile fills the whole screen var rect = Qt.rect(this.screenRectangle.x, @@ -109,7 +108,6 @@ SpiralLayout.prototype.removeTile = function(tileIndex) { rects[1].y + rects[1].height); var lastRect = Qt.rect(left, top, right - left, bottom - top); this.tiles[tileCount - 1].rectangle = lastRect; - //print("New tilesize:",left,top,right - left,bottom - top); } // Remove the last array entry this.tiles.length--; @@ -120,7 +118,6 @@ SpiralLayout.prototype.removeTile = function(tileIndex) { lastTile.neighbours[Direction.Down] = 0; lastTile.hasDirectNeighbour[Direction.Down] = false; } - print("Now exiting"); } SpiralLayout.prototype.resizeTile = function(tileIndex, rectangle) { diff --git a/contents/code/tilelist.js b/contents/code/tilelist.js index ea605c9..6ca6da8 100644 --- a/contents/code/tilelist.js +++ b/contents/code/tilelist.js @@ -58,8 +58,6 @@ function TileList() { * @param client Client which is added to the tile list. */ TileList.prototype.addClient = function(client) { - print("addClient"); - print(client.resourceClass.toString()); if (TileList._isIgnored(client)) { client.tileIndex = null; return; @@ -255,24 +253,19 @@ TileList._isIgnored = function(client) { // TODO: Hook this up to the rules var floaters = Array("yakuake", "krunner", "Plasma", "Plasma-desktop", "plasma-desktop", "Plugin-container", "plugin-container"); if (floaters.indexOf(client.resourceClass.toString()) > -1) { - print("Client is in rules"); client.syncTabGroupFor("kwin_tiling_floats", true); return true; } if (client.dialog) { - print("Client is a dialog"); return true; } if (client.splash) { - print("Client is a splash"); return true; } if (client.dock) { - print("Client is a dock"); return true; } if (client.specialWindow == true) { - print("Client is special"); return true; } return false; diff --git a/contents/code/tilingmanager.js b/contents/code/tilingmanager.js index 7b349a0..93042c3 100644 --- a/contents/code/tilingmanager.js +++ b/contents/code/tilingmanager.js @@ -269,7 +269,6 @@ TilingManager.prototype._onTileAdded = function(tile) { // Add tile callbacks which are needed to move the tile between different // screens/desktops var self = this; - print("Adding tile"); tile.screenChanged.connect(function(oldScreen, newScreen) { self._onTileScreenChanged(tile, oldScreen, newScreen); }); -- GitLab