From ee83694372e2cd8a03131c042189a5359504f1b6 Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Fri, 16 Sep 2022 15:45:52 -0700 Subject: [PATCH] chore(runner): remove unnecessary traversal (#17415) --- packages/playwright-test/src/fixtures.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/packages/playwright-test/src/fixtures.ts b/packages/playwright-test/src/fixtures.ts index 32f4410d8b..2aa919ed5a 100644 --- a/packages/playwright-test/src/fixtures.ts +++ b/packages/playwright-test/src/fixtures.ts @@ -282,15 +282,10 @@ export class FixturePool { } validateFunction(fn: Function, prefix: string, location: Location) { - const visit = (registration: FixtureRegistration) => { - for (const name of registration.deps) - visit(this.resolveDependency(registration, name)!); - }; for (const name of fixtureParameterNames(fn, location)) { const registration = this.registrations.get(name); if (!registration) throw errorWithLocations(`${prefix} has unknown parameter "${name}".`, { location, name: prefix, quoted: false }); - visit(registration); } }