From d5ecf04043becd6a3a7b3800467d2e4610e5c39e Mon Sep 17 00:00:00 2001 From: Thomas Heartman Date: Thu, 10 Jul 2025 12:07:36 +0200 Subject: [PATCH] chore: remove unused method (#10335) I found this method when running through the environment store that has 0 references. I also can't find any references to it in enterprise and it's not in the interface. I think it's safe to remove. --- .../project-environments/environment-store.ts | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/lib/features/project-environments/environment-store.ts b/src/lib/features/project-environments/environment-store.ts index 457fbd47df..e808463f90 100644 --- a/src/lib/features/project-environments/environment-store.ts +++ b/src/lib/features/project-environments/environment-store.ts @@ -301,20 +301,6 @@ export default class EnvironmentStore implements IEnvironmentStore { return present; } - async getByName(name: string): Promise { - const stopTimer = this.timer('getByName'); - const row = await this.db(TABLE) - .where({ name }) - .first(); - stopTimer(); - if (!row) { - throw new NotFoundError( - `Could not find environment with name ${name}`, - ); - } - return mapRow(row); - } - async updateProperty( id: string, field: string,