@@ -264,8 +264,6 @@ pub struct AppHandle<R: Runtime> {
264264 pub ( crate ) manager : WindowManager < R > ,
265265 #[ cfg( all( desktop, feature = "global-shortcut" ) ) ]
266266 global_shortcut_manager : R :: GlobalShortcutManager ,
267- #[ cfg( feature = "clipboard" ) ]
268- clipboard_manager : R :: ClipboardManager ,
269267 /// The updater configuration.
270268 #[ cfg( updater) ]
271269 pub ( crate ) updater_settings : UpdaterSettings ,
@@ -320,8 +318,6 @@ impl<R: Runtime> Clone for AppHandle<R> {
320318 manager : self . manager . clone ( ) ,
321319 #[ cfg( all( desktop, feature = "global-shortcut" ) ) ]
322320 global_shortcut_manager : self . global_shortcut_manager . clone ( ) ,
323- #[ cfg( feature = "clipboard" ) ]
324- clipboard_manager : self . clipboard_manager . clone ( ) ,
325321 #[ cfg( updater) ]
326322 updater_settings : self . updater_settings . clone ( ) ,
327323 }
@@ -480,8 +476,6 @@ pub struct App<R: Runtime> {
480476 manager : WindowManager < R > ,
481477 #[ cfg( all( desktop, feature = "global-shortcut" ) ) ]
482478 global_shortcut_manager : R :: GlobalShortcutManager ,
483- #[ cfg( feature = "clipboard" ) ]
484- clipboard_manager : R :: ClipboardManager ,
485479 handle : AppHandle < R > ,
486480}
487481
@@ -494,8 +488,6 @@ impl<R: Runtime> fmt::Debug for App<R> {
494488
495489 #[ cfg( all( desktop, feature = "global-shortcut" ) ) ]
496490 d. field ( "global_shortcut_manager" , & self . global_shortcut_manager ) ;
497- #[ cfg( feature = "clipboard" ) ]
498- d. field ( "clipboard_manager" , & self . clipboard_manager ) ;
499491
500492 d. finish ( )
501493 }
@@ -639,13 +631,6 @@ macro_rules! shared_app_impl {
639631 self . global_shortcut_manager. clone( )
640632 }
641633
642- /// Gets a copy of the clipboard manager instance.
643- #[ cfg( feature = "clipboard" ) ]
644- #[ cfg_attr( doc_cfg, doc( cfg( feature = "clipboard" ) ) ) ]
645- pub fn clipboard_manager( & self ) -> R :: ClipboardManager {
646- self . clipboard_manager. clone( )
647- }
648-
649634 /// Gets the app's configuration, defined on the `tauri.conf.json` file.
650635 pub fn config( & self ) -> Arc <Config > {
651636 self . manager. config( )
@@ -1513,9 +1498,6 @@ impl<R: Runtime> Builder<R> {
15131498 #[ cfg( all( desktop, feature = "global-shortcut" ) ) ]
15141499 let global_shortcut_manager = runtime. global_shortcut_manager ( ) ;
15151500
1516- #[ cfg( feature = "clipboard" ) ]
1517- let clipboard_manager = runtime. clipboard_manager ( ) ;
1518-
15191501 #[ allow( unused_mut) ]
15201502 let mut app = App {
15211503 runtime : Some ( runtime) ,
@@ -1524,15 +1506,11 @@ impl<R: Runtime> Builder<R> {
15241506 manager : manager. clone ( ) ,
15251507 #[ cfg( all( desktop, feature = "global-shortcut" ) ) ]
15261508 global_shortcut_manager : global_shortcut_manager. clone ( ) ,
1527- #[ cfg( feature = "clipboard" ) ]
1528- clipboard_manager : clipboard_manager. clone ( ) ,
15291509 handle : AppHandle {
15301510 runtime_handle,
15311511 manager,
15321512 #[ cfg( all( desktop, feature = "global-shortcut" ) ) ]
15331513 global_shortcut_manager,
1534- #[ cfg( feature = "clipboard" ) ]
1535- clipboard_manager,
15361514 #[ cfg( updater) ]
15371515 updater_settings : self . updater_settings ,
15381516 } ,
0 commit comments