Browse Source

chore: lmao

Keeley Hammond 1 year ago
parent
commit
bfdd1d5d20
1 changed files with 0 additions and 10 deletions
  1. 0 10
      shell/browser/api/electron_api_power_monitor.cc

+ 0 - 10
shell/browser/api/electron_api_power_monitor.cc

@@ -71,7 +71,6 @@ PowerMonitor::PowerMonitor(v8::Isolate* isolate) {
   base::PowerMonitor::AddPowerStateObserver(this);
   base::PowerMonitor::AddPowerSuspendObserver(this);
   base::PowerMonitor::AddPowerThermalObserver(this);
-  base::PowerMonitor::NotifySpeedLimitChange(int speed_limit);
 
 #if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN)
   InitPlatformSpecificMonitors();
@@ -111,14 +110,6 @@ void PowerMonitor::OnThermalStateChange(DeviceThermalState new_state) {
       gin::DataObjectBuilder(isolate).Set("state", new_state).Build());
 }
 
-void PowerMonitor::OnSpeedLimitChange(int speed_limit) {
-  v8::Isolate* isolate = JavascriptEnvironment::GetIsolate();
-  v8::HandleScope scope(isolate);
-  EmitWithoutEvent(
-      "speed-limit-change",
-      gin::DataObjectBuilder(isolate).Set("limit", speed_limit).Build());
-}
-
 #if BUILDFLAG(IS_LINUX)
 void PowerMonitor::SetListeningForShutdown(bool is_listening) {
   if (is_listening) {
@@ -197,7 +188,6 @@ void Initialize(v8::Local<v8::Object> exports,
                  base::BindRepeating(&GetCurrentThermalState));
   dict.SetMethod("getSystemIdleTime", base::BindRepeating(&GetSystemIdleTime));
   dict.SetMethod("isOnBatteryPower", base::BindRepeating(&IsOnBatteryPower));
-  dict.SetMethod("setSpeedLimitChange", base::BindRepeating(&NotifySpeedLimitChange));
 }
 
 }  // namespace