Removed unused functions
This commit is contained in:
parent
a0584c2bb9
commit
8f4d4fc482
@ -66,10 +66,6 @@ class WeatherManager {
|
||||
await this.saveAndEmitWeather()
|
||||
}
|
||||
|
||||
public cleanup(): void {
|
||||
this.intervalId && clearInterval(this.intervalId)
|
||||
}
|
||||
|
||||
private async loadWeather(): Promise<void> {
|
||||
try {
|
||||
const worldRepository = new WorldRepository()
|
||||
@ -130,9 +126,7 @@ class WeatherManager {
|
||||
//the data model still contains the booleans
|
||||
await world
|
||||
.setRainPercentage(this.weatherState.rainPercentage)
|
||||
.setIsRainEnabled(this.weatherState.rainPercentage > 0)
|
||||
.setFogDensity(this.weatherState.fogDensity)
|
||||
.setIsFogEnabled(this.weatherState.fogDensity > 0)
|
||||
.save()
|
||||
} catch (error) {
|
||||
this.logError('save', error)
|
||||
|
Loading…
x
Reference in New Issue
Block a user