mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01: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:
		
							parent
							
								
									eb80f00206
								
							
						
					
					
						commit
						d5ecf04043
					
				| @ -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, | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user