@@ -260,15 +260,9 @@ pulse_device_update (PulseDevice *device, const pa_card_info *info)
260
260
g_return_if_fail (PULSE_IS_DEVICE (device ));
261
261
g_return_if_fail (info != NULL );
262
262
263
- #if PA_CHECK_VERSION (5 , 0 , 0 )
264
263
if G_LIKELY (info -> active_profile2 != NULL )
265
264
pulse_device_switch_set_active_profile_by_name (device -> priv -> pswitch ,
266
265
info -> active_profile2 -> name );
267
- #else
268
- if G_LIKELY (info -> active_profile != NULL )
269
- pulse_device_switch_set_active_profile_by_name (device -> priv -> pswitch ,
270
- info -> active_profile -> name );
271
- #endif
272
266
}
273
267
274
268
void
@@ -404,18 +398,13 @@ pulse_device_load (PulseDevice *device, const pa_card_info *info)
404
398
for (i = 0 ; i < info -> n_profiles ; i ++ ) {
405
399
PulseDeviceProfile * profile ;
406
400
407
- #if PA_CHECK_VERSION (5 , 0 , 0 )
408
401
pa_card_profile_info2 * p_info = info -> profiles2 [i ];
409
402
410
403
/* PulseAudio 5.0 includes a new pa_card_profile_info2 which only
411
404
* differs in the new available flag, we use it not to include profiles
412
405
* which are unavailable */
413
406
if (p_info -> available == 0 )
414
407
continue ;
415
- #else
416
- /* The old profile list is an array of structs, not pointers */
417
- pa_card_profile_info * p_info = & info -> profiles [i ];
418
- #endif
419
408
420
409
profile = pulse_device_profile_new (p_info -> name ,
421
410
p_info -> description ,
0 commit comments