From cebb14f59cb54b24861a9aef03b9fcbf57465967 Mon Sep 17 00:00:00 2001 From: RoscoeDeWah Date: Thu, 16 Jan 2025 13:57:12 +0000 Subject: Remove *more* unused stuff --- app/View/Components/Weather.php | 50 ----------------------------------------- 1 file changed, 50 deletions(-) delete mode 100644 app/View/Components/Weather.php (limited to 'app/View/Components/Weather.php') diff --git a/app/View/Components/Weather.php b/app/View/Components/Weather.php deleted file mode 100644 index dcf3ff7..0000000 --- a/app/View/Components/Weather.php +++ /dev/null @@ -1,50 +0,0 @@ -json(); - $conditions = $data["data"]["conditions"]; - Cache::put('weather_data', $conditions, now()->addSeconds(60)); - return $conditions; - } catch (Exception $ex) { - return null; - } - - } - - /** - * Get the view / contents that represent the component. - */ - public function render(): View|Closure|string - { - return view('components.weather', [ - 'conditions' => $this->getWeatherData(), - ]); - } -} -- cgit v1.2.3-54-g00ecf