fix(maintainability): resolve F-15 — remove all commented-out dead code blocks

This commit is contained in:
root
2026-05-28 16:38:26 +08:00
parent f7f2736245
commit 118f550d31
8 changed files with 0 additions and 74 deletions

View File

@@ -214,22 +214,6 @@ class RainfallController extends Controller
->orderBy('timestamp')
->get();
return response()->json($graphData);
// $graphData = DB::table('rainfall')
// ->select(
// DB::raw("DATE(timestamp) as date"),
// DB::raw("TO_CHAR(timestamp, 'HH24:MI') AS time_slot"),
// 'currentrf'
// )
// ->where('stationid', $stationid)
// ->whereBetween('timestamp', [
// now()->subDays(7)->startOfDay(),
// now()->endOfDay()
// ])
// ->whereRaw("EXTRACT(MINUTE FROM timestamp) % 5 = 0") // only multiples of 5 minutes
// ->orderBy('timestamp')
// ->get();
}
// Function retrieve data of 6 Hours Rainfall fo Graph Page
@@ -293,8 +277,6 @@ class RainfallController extends Controller
//Return View Graph Page
public function graphPage($stationid,$dates)
{
// $station = DB::table('station')->where('stationid',$stationid)->first();
return view('layout.graph.rainfall',compact('stationid','dates'));
}