fix(maintainability): resolve F-15 — remove all commented-out dead code blocks
This commit is contained in:
@@ -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'));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user