removed dead code from PR #2818

This commit is contained in:
Alex Justesen
2026-06-22 18:51:03 -04:00
parent 54f117d263
commit 7fe726fc1d
3 changed files with 0 additions and 83 deletions
-18
View File
@@ -1,18 +0,0 @@
<?php
namespace App\View\Components;
use Closure;
use Illuminate\Contracts\View\View;
use Illuminate\View\Component;
class DebugLayout extends Component
{
/**
* Get the view / contents that represent the component.
*/
public function render(): View|Closure|string
{
return view('layouts.app');
}
}
-35
View File
@@ -24,19 +24,6 @@ if (! function_exists('toBits')) {
}
}
if (! function_exists('percentChange')) {
function percentChange(float $dividend, float $divisor, int $precision = 0): string
{
if ($dividend === 0 || $divisor === 0) {
return 0;
}
$quotient = ($dividend - $divisor) / $divisor;
return number_format(round($quotient * 100, $precision), $precision);
}
}
if (! function_exists('absoluteDownloadThresholdFailed')) {
function absoluteDownloadThresholdFailed(float $threshold, float $download = 0): bool
{
@@ -57,25 +44,3 @@ if (! function_exists('absolutePingThresholdFailed')) {
return $ping > $threshold;
}
}
/**
* Determine if the string provided is valid json.
*
* This function will be overwritten in php 8.3 https://wiki.php.net/rfc/json_validate
*
* @deprecated
*
* @param string $data
* @return bool
*/
if (! function_exists('json_validate')) {
function json_validate($data)
{
if (! empty($data)) {
return is_string($data) &&
is_array(json_decode($data, true)) ? true : false;
}
return false;
}
}
-30
View File
@@ -1,30 +0,0 @@
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" class="h-full">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Timezone - {{ config('app.name') }}</title>
<link rel="icon" type="image/x-icon" href="{{ asset('favicon.ico') }}">
<link rel="apple-touch-icon" href="{{ asset('img/speedtest-tracker-icon.png') }}">
{{-- Fonts --}}
<link href="{{ asset('fonts/inter/inter.css') }}" rel="stylesheet" />
{{-- Styles --}}
@filamentStyles
@vite('resources/css/app.css')
</head>
<body class="min-h-screen antialiased bg-gray-50 text-gray-950">
<main class="max-w-xl p-4 mx-auto space-y-4 sm:p-6 lg:p-8 sm:space-y-8">
@if (isset($header))
{{ $header }}
@endif
{{ $slot }}
</main>
{{-- Scripts --}}
@filamentScripts
</body>
</html>