Remove useless logging while panning in verbose mode, #4985
This commit is contained in:
@@ -1163,10 +1163,6 @@ bool check_need_larger_crop_for_lcp_distortion(int fw, int fh, int x, int y, int
|
|||||||
bool Crop::setCropSizes(int rcx, int rcy, int rcw, int rch, int skip, bool internal)
|
bool Crop::setCropSizes(int rcx, int rcy, int rcw, int rch, int skip, bool internal)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (settings->verbose) {
|
|
||||||
printf("setcropsizes before lock\n");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!internal) {
|
if (!internal) {
|
||||||
cropMutex.lock();
|
cropMutex.lock();
|
||||||
}
|
}
|
||||||
@@ -1258,10 +1254,6 @@ bool Crop::setCropSizes(int rcx, int rcy, int rcw, int rch, int skip, bool inter
|
|||||||
int cw = skips(bw, skip);
|
int cw = skips(bw, skip);
|
||||||
int ch = skips(bh, skip);
|
int ch = skips(bh, skip);
|
||||||
|
|
||||||
if (settings->verbose) {
|
|
||||||
printf("setsizes starts (%d, %d, %d, %d, %d, %d)\n", orW, orH, trafw, trafh, cw, ch);
|
|
||||||
}
|
|
||||||
|
|
||||||
EditType editType = ET_PIPETTE;
|
EditType editType = ET_PIPETTE;
|
||||||
|
|
||||||
if (const auto editProvider = PipetteBuffer::getDataProvider()) {
|
if (const auto editProvider = PipetteBuffer::getDataProvider()) {
|
||||||
@@ -1326,10 +1318,6 @@ bool Crop::setCropSizes(int rcx, int rcy, int rcw, int rch, int skip, bool inter
|
|||||||
cropx = bx1;
|
cropx = bx1;
|
||||||
cropy = by1;
|
cropy = by1;
|
||||||
|
|
||||||
if (settings->verbose) {
|
|
||||||
printf("setsizes ends\n");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!internal) {
|
if (!internal) {
|
||||||
cropMutex.unlock();
|
cropMutex.unlock();
|
||||||
}
|
}
|
||||||
|
@@ -1010,10 +1010,6 @@ void ImProcCoordinator::freeAll()
|
|||||||
void ImProcCoordinator::setScale(int prevscale)
|
void ImProcCoordinator::setScale(int prevscale)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (settings->verbose) {
|
|
||||||
printf("setscale before lock\n");
|
|
||||||
}
|
|
||||||
|
|
||||||
tr = getCoarseBitMask(params.coarse);
|
tr = getCoarseBitMask(params.coarse);
|
||||||
|
|
||||||
int nW, nH;
|
int nW, nH;
|
||||||
@@ -1027,10 +1023,6 @@ void ImProcCoordinator::setScale(int prevscale)
|
|||||||
imgsrc->getSize(pp, nW, nH);
|
imgsrc->getSize(pp, nW, nH);
|
||||||
} while (nH < 400 && prevscale > 1 && (nW * nH < 1000000)); // sctually hardcoded values, perhaps a better choice is possible
|
} 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) {
|
if (nW != pW || nH != pH) {
|
||||||
|
|
||||||
freeAll();
|
freeAll();
|
||||||
@@ -1054,19 +1046,10 @@ void ImProcCoordinator::setScale(int prevscale)
|
|||||||
fullw = fw;
|
fullw = fw;
|
||||||
fullh = fh;
|
fullh = fh;
|
||||||
|
|
||||||
if (settings->verbose) {
|
|
||||||
printf("setscale ends\n");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!sizeListeners.empty())
|
if (!sizeListeners.empty())
|
||||||
for (size_t i = 0; i < sizeListeners.size(); i++) {
|
for (size_t i = 0; i < sizeListeners.size(); i++) {
|
||||||
sizeListeners[i]->sizeChanged(fullw, fullh, fw, fh);
|
sizeListeners[i]->sizeChanged(fullw, fullh, fw, fh);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (settings->verbose) {
|
|
||||||
printf("setscale ends2\n");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user