Removed unused functions

This commit is contained in:
Dennis Postma 2025-01-24 23:53:03 +01:00
parent a0584c2bb9
commit 8f4d4fc482

View File

@ -66,10 +66,6 @@ class WeatherManager {
await this.saveAndEmitWeather() await this.saveAndEmitWeather()
} }
public cleanup(): void {
this.intervalId && clearInterval(this.intervalId)
}
private async loadWeather(): Promise<void> { private async loadWeather(): Promise<void> {
try { try {
const worldRepository = new WorldRepository() const worldRepository = new WorldRepository()
@ -130,9 +126,7 @@ class WeatherManager {
//the data model still contains the booleans //the data model still contains the booleans
await world await world
.setRainPercentage(this.weatherState.rainPercentage) .setRainPercentage(this.weatherState.rainPercentage)
.setIsRainEnabled(this.weatherState.rainPercentage > 0)
.setFogDensity(this.weatherState.fogDensity) .setFogDensity(this.weatherState.fogDensity)
.setIsFogEnabled(this.weatherState.fogDensity > 0)
.save() .save()
} catch (error) { } catch (error) {
this.logError('save', error) this.logError('save', error)