From be98adf3e775bdcfb5d6a7266eaf793fd32352f6 Mon Sep 17 00:00:00 2001 From: Dmitrii Gridnev Date: Tue, 24 Sep 2024 10:15:14 +0200 Subject: [PATCH] refactor: remove unused code --- qase-playwright/src/reporter.ts | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/qase-playwright/src/reporter.ts b/qase-playwright/src/reporter.ts index b788d6b8..eb833378 100644 --- a/qase-playwright/src/reporter.ts +++ b/qase-playwright/src/reporter.ts @@ -59,12 +59,6 @@ export class PlaywrightQaseReporter implements Reporter { */ private static qaseIds: Map = new Map(); - /** - * @type {Map} - * @private - */ - private qaseTestWithOldAnnotation: Map = new Map(); - /** * @param {TestCase} test * @returns {string[]} @@ -414,12 +408,7 @@ export class PlaywrightQaseReporter implements Reporter { } else if (testCaseMetadata.ids.length > 0) { testResult.testops_id = testCaseMetadata.ids; } else { - const ids = PlaywrightQaseReporter.qaseIds.get(test.title) ?? null; - testResult.testops_id = ids; - if (ids) { - const path = `${test.location.file}:${test.location.line}:${test.location.column}`; - this.qaseTestWithOldAnnotation.set(path, ids); - } + testResult.testops_id = PlaywrightQaseReporter.qaseIds.get(test.title) ?? null; } testResult.signature = this.getSignature(suites, testCaseMetadata.parameters, testResult.testops_id ?? []);