1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-07-31 13:47:02 +02:00

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.
This commit is contained in:
Thomas Heartman 2025-07-10 12:07:36 +02:00 committed by GitHub
parent eb80f00206
commit d5ecf04043
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -301,20 +301,6 @@ export default class EnvironmentStore implements IEnvironmentStore {
return present;
}
async getByName(name: string): Promise<IEnvironment> {
const stopTimer = this.timer('getByName');
const row = await this.db<IEnvironmentsTable>(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,