@@ -23,9 +23,6 @@ use crate::{command, queue, spotify};
2323#[ cfg( feature = "media_control" ) ]
2424use crate :: media_control:: { self , MediaControlManager } ;
2525
26- #[ cfg( feature = "mpris" ) ]
27- use crate :: mpris:: { self , MprisManager } ;
28-
2926#[ cfg( unix) ]
3027use crate :: ipc:: { self , IpcSocket } ;
3128
@@ -73,9 +70,6 @@ pub struct Application {
7370 /// Use media control keys using souvlaki.
7471 #[ cfg( feature = "media_control" ) ]
7572 media_control_manager : MediaControlManager ,
76- /// An IPC implementation using the D-Bus MPRIS protocol, used to control and inspect ncspot.
77- #[ cfg( feature = "mpris" ) ]
78- mpris_manager : MprisManager ,
7973 /// An IPC implementation using a Unix domain socket, used to control and inspect ncspot.
8074 #[ cfg( unix) ]
8175 ipc : IpcSocket ,
@@ -140,14 +134,6 @@ impl Application {
140134 media_control:: MediaControlManager :: new ( spotify. clone ( ) , queue. clone ( ) )
141135 . map_err ( |err| -> String { format ! ( "media_control error {err:?}" ) } ) ?;
142136
143- #[ cfg( feature = "mpris" ) ]
144- let mpris_manager = mpris:: MprisManager :: new (
145- event_manager. clone ( ) ,
146- queue. clone ( ) ,
147- library. clone ( ) ,
148- spotify. clone ( ) ,
149- ) ;
150-
151137 #[ cfg( unix) ]
152138 let ipc = ipc:: IpcSocket :: new (
153139 ASYNC_RUNTIME . get ( ) . unwrap ( ) . handle ( ) ,
@@ -213,8 +199,6 @@ impl Application {
213199 event_manager,
214200 #[ cfg( feature = "media_control" ) ]
215201 media_control_manager,
216- #[ cfg( feature = "mpris" ) ]
217- mpris_manager,
218202 #[ cfg( unix) ]
219203 ipc,
220204 cursive,
@@ -248,9 +232,6 @@ impl Application {
248232 #[ cfg( feature = "media_control" ) ]
249233 self . media_control_manager . update ( ) ;
250234
251- #[ cfg( feature = "mpris" ) ]
252- self . mpris_manager . update ( ) ;
253-
254235 #[ cfg( unix) ]
255236 self . ipc . publish ( & state, self . queue . get_current ( ) ) ;
256237
0 commit comments