@@ -260,15 +260,9 @@ pulse_device_update (PulseDevice *device, const pa_card_info *info)
260260 g_return_if_fail (PULSE_IS_DEVICE (device ));
261261 g_return_if_fail (info != NULL );
262262
263- #if PA_CHECK_VERSION (5 , 0 , 0 )
264263 if G_LIKELY (info -> active_profile2 != NULL )
265264 pulse_device_switch_set_active_profile_by_name (device -> priv -> pswitch ,
266265 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
272266}
273267
274268void
@@ -404,18 +398,13 @@ pulse_device_load (PulseDevice *device, const pa_card_info *info)
404398 for (i = 0 ; i < info -> n_profiles ; i ++ ) {
405399 PulseDeviceProfile * profile ;
406400
407- #if PA_CHECK_VERSION (5 , 0 , 0 )
408401 pa_card_profile_info2 * p_info = info -> profiles2 [i ];
409402
410403 /* PulseAudio 5.0 includes a new pa_card_profile_info2 which only
411404 * differs in the new available flag, we use it not to include profiles
412405 * which are unavailable */
413406 if (p_info -> available == 0 )
414407 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
419408
420409 profile = pulse_device_profile_new (p_info -> name ,
421410 p_info -> description ,
0 commit comments