Skip to content

Commit 2c9a9b0

Browse files
committed
(cleanup) Removed console.log() calls
1 parent 3fba222 commit 2c9a9b0

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

lib/provider/opencv/template-matching-finder.class.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ export class TemplateMatchingFinder implements FinderInterface {
4747
const matchResult = await TemplateMatchingFinder.match(haystack, scaledNeedle);
4848
if (debug) {
4949
this.debugImage(scaledNeedle, "scaled_needle.png");
50-
console.log(`Scaled needle: ${matchResult.confidence}`);
5150
}
5251
return new MatchResult(
5352
matchResult.confidence,
@@ -79,7 +78,6 @@ export class TemplateMatchingFinder implements FinderInterface {
7978
const matchResult = await TemplateMatchingFinder.match(scaledHaystack, needle);
8079
if (debug) {
8180
this.debugImage(scaledHaystack, "scaled_haystack.png");
82-
console.log(`Scaled haystack: ${matchResult.confidence}`);
8381
}
8482
return new MatchResult(
8583
matchResult.confidence,
@@ -142,7 +140,6 @@ export class TemplateMatchingFinder implements FinderInterface {
142140
const matchResults = [];
143141
const unscaledResult = await TemplateMatchingFinder.match(haystack, needle);
144142
if (debug) {
145-
console.log(`Unscaled result: ${unscaledResult.confidence}`);
146143
TemplateMatchingFinder.debugResult(
147144
haystack,
148145
unscaledResult,

lib/util/poll-action.function.spec.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ describe("poll-action", () => {
66
const updateInterval = 200;
77
const maxDuration = 1000;
88
const action = jest.fn(() => {
9-
console.log(`Polling...`);
109
return Promise.reject(false);
1110
});
1211

@@ -29,7 +28,6 @@ describe("poll-action", () => {
2928
const updateInterval = 200;
3029
const maxDuration = 1000;
3130
const action = jest.fn(async () => {
32-
console.log(`Polling...`);
3331
return false;
3432
});
3533

@@ -52,7 +50,6 @@ describe("poll-action", () => {
5250
const updateInterval = 200;
5351
const maxDuration = 1000;
5452
const action = jest.fn(() => {
55-
console.log(`Polling...`);
5653
return Promise.resolve(true);
5754
});
5855

@@ -71,7 +68,6 @@ describe("poll-action", () => {
7168
const updateInterval = 200;
7269
const maxDuration = 1000;
7370
const action = jest.fn(async () => {
74-
console.log(`Polling...`);
7571
return true;
7672
});
7773

@@ -91,7 +87,6 @@ describe("poll-action", () => {
9187
const maxDuration = 1000;
9288
const delay = 2.2 * updateInterval;
9389
const action = jest.fn(() => {
94-
console.log(`Polling...`);
9590
const interval = (Date.now() - start);
9691
return new Promise<boolean>((resolve, reject) => (interval > delay) ? resolve(true) : reject());
9792
});

0 commit comments

Comments
 (0)