فهرست منبع

Omit system reference

Chloe Marcec 5 سال پیش
والد
کامیت
2c57f0fbd5
1فایلهای تغییر یافته به همراه1 افزوده شده و 2 حذف شده
  1. 1 2
      src/core/hle/service/ptm/psm.cpp

+ 1 - 2
src/core/hle/service/ptm/psm.cpp

@@ -117,7 +117,7 @@ private:
 
 
 class PSM final : public ServiceFramework<PSM> {
 class PSM final : public ServiceFramework<PSM> {
 public:
 public:
-    explicit PSM(Core::System& system_) : ServiceFramework{system_, "psm"}, system(system_) {
+    explicit PSM(Core::System& system_) : ServiceFramework{system_, "psm"} {
         // clang-format off
         // clang-format off
         static const FunctionInfo functions[] = {
         static const FunctionInfo functions[] = {
             {0, &PSM::GetBatteryChargePercentage, "GetBatteryChargePercentage"},
             {0, &PSM::GetBatteryChargePercentage, "GetBatteryChargePercentage"},
@@ -181,7 +181,6 @@ private:
 
 
     u32 battery_charge_percentage{100}; // 100%
     u32 battery_charge_percentage{100}; // 100%
     ChargerType charger_type{ChargerType::RegularCharger};
     ChargerType charger_type{ChargerType::RegularCharger};
-    Core::System& system;
 };
 };
 
 
 void InstallInterfaces(SM::ServiceManager& sm, Core::System& system) {
 void InstallInterfaces(SM::ServiceManager& sm, Core::System& system) {