From eb38719a5b57fc2cfc384a007d42add603c141c1 Mon Sep 17 00:00:00 2001 From: Alexander Golubev Date: Fri, 1 Mar 2019 14:42:06 +0300 Subject: [PATCH] remove a couple of extronous assignments and a check Signed-off-by: Alexander Golubev --- src/kooldock.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/kooldock.cpp b/src/kooldock.cpp index cad4541..d4c4acc 100644 --- a/src/kooldock.cpp +++ b/src/kooldock.cpp @@ -1327,8 +1327,6 @@ void KoolDock::mksmallTimerstop() } ii_first = 0; ii_last = items.count() - 1; - ii_first = 0; - ii_last = items.count() - 1; adjust = 0; iwBig = iwBig2; if (fHidden == 0) { @@ -1880,8 +1878,6 @@ void KoolDock::doUpdateGeometry() ii_first = 0; ii_last = items.count() - 1; - ii_first = 0; - ii_last = ii_last; if (fExpanded == true) { w = w1; @@ -3757,7 +3753,7 @@ int KoolDock::xFromIndex(int i) else if ((i >= ii_first) && (i <= ii_last)) { Xpos = cur_cx[i] - iSize[i] / 2 + adjust + soffset; } - else if (i > ii_last) { + else { // if (i > ii_last) Xpos = cur_cx[i] - iwSmall / 2 + adjust + SPACE_W - 3 + soffset * 0; } return Xpos;