@@ -202,13 +202,6 @@ void ffParseBatteryJsonObject(FFBatteryOptions* options, yyjson_val* module) {
202202 continue ;
203203 }
204204
205- #ifdef _WIN32
206- if (unsafe_yyjson_equals_str (key , "useSetupApi" )) {
207- options -> useSetupApi = yyjson_get_bool (val );
208- continue ;
209- }
210- #endif
211-
212205 if (ffTempsParseJsonObject (key , val , & options -> temp , & options -> tempConfig )) {
213206 continue ;
214207 }
@@ -224,10 +217,6 @@ void ffParseBatteryJsonObject(FFBatteryOptions* options, yyjson_val* module) {
224217void ffGenerateBatteryJsonConfig (FFBatteryOptions * options , yyjson_mut_doc * doc , yyjson_mut_val * module ) {
225218 ffJsonConfigGenerateModuleArgsConfig (doc , module , & options -> moduleArgs );
226219
227- #ifdef _WIN32
228- yyjson_mut_obj_add_bool (doc , module , "useSetupApi" , options -> useSetupApi );
229- #endif
230-
231220 ffTempsGenerateJsonConfig (doc , module , options -> temp , options -> tempConfig );
232221 ffPercentGenerateJsonConfig (doc , module , options -> percent );
233222}
@@ -302,10 +291,6 @@ void ffInitBatteryOptions(FFBatteryOptions* options) {
302291 options -> temp = false;
303292 options -> tempConfig = (FFColorRangeConfig ) { 60 , 80 };
304293 options -> percent = (FFPercentageModuleConfig ) { 50 , 20 , 0 };
305-
306- #ifdef _WIN32
307- options -> useSetupApi = false;
308- #endif
309294}
310295
311296void ffDestroyBatteryOptions (FFBatteryOptions * options ) {
0 commit comments