Remove useless logging while panning in verbose mode, #4985

This commit is contained in:
heckflosse
2018-11-13 22:39:54 +01:00
parent 24ce9148b9
commit be4027349d
2 changed files with 0 additions and 29 deletions

View File

@@ -1010,10 +1010,6 @@ void ImProcCoordinator::freeAll()
void ImProcCoordinator::setScale(int prevscale)
{
if (settings->verbose) {
printf("setscale before lock\n");
}
tr = getCoarseBitMask(params.coarse);
int nW, nH;
@@ -1027,10 +1023,6 @@ void ImProcCoordinator::setScale(int prevscale)
imgsrc->getSize(pp, nW, nH);
} while (nH < 400 && prevscale > 1 && (nW * nH < 1000000)); // sctually hardcoded values, perhaps a better choice is possible
if (settings->verbose) {
printf("setscale starts (%d, %d)\n", nW, nH);
}
if (nW != pW || nH != pH) {
freeAll();
@@ -1054,19 +1046,10 @@ void ImProcCoordinator::setScale(int prevscale)
fullw = fw;
fullh = fh;
if (settings->verbose) {
printf("setscale ends\n");
}
if (!sizeListeners.empty())
for (size_t i = 0; i < sizeListeners.size(); i++) {
sizeListeners[i]->sizeChanged(fullw, fullh, fw, fh);
}
if (settings->verbose) {
printf("setscale ends2\n");
}
}