Skip to content

Commit

Permalink
refactor!: remove clipboard impl (#797)
Browse files Browse the repository at this point in the history
  • Loading branch information
amrbashir authored Oct 4, 2023
1 parent 0101ed6 commit 71d744c
Show file tree
Hide file tree
Showing 13 changed files with 6 additions and 400 deletions.
5 changes: 5 additions & 0 deletions .changes/clipboard.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"tao": "minor"
---

**Breaking change**: Removed clipboard implementation. Use `arboard` crate instead.
98 changes: 0 additions & 98 deletions src/clipboard.rs

This file was deleted.

1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ extern crate bitflags;
#[macro_use]
extern crate objc;

pub mod clipboard;
pub mod dpi;
#[macro_use]
pub mod error;
Expand Down
12 changes: 0 additions & 12 deletions src/platform_impl/android/clipboard.rs

This file was deleted.

2 changes: 0 additions & 2 deletions src/platform_impl/android/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ use std::{
time::{Duration, Instant},
};

mod clipboard;
pub use clipboard::Clipboard;
pub mod ndk_glue;
use ndk_glue::{Event, Rect};

Expand Down
12 changes: 0 additions & 12 deletions src/platform_impl/ios/clipboard.rs

This file was deleted.

2 changes: 0 additions & 2 deletions src/platform_impl/ios/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ macro_rules! assert_main_thread {
}

mod app_state;
mod clipboard;
mod event_loop;
mod ffi;
mod keycode;
Expand All @@ -86,7 +85,6 @@ use std::fmt;

pub(crate) use self::event_loop::PlatformSpecificEventLoopAttributes;
pub use self::{
clipboard::Clipboard,
event_loop::{EventLoop, EventLoopProxy, EventLoopWindowTarget},
keycode::{keycode_from_scancode, keycode_to_scancode},
monitor::{MonitorHandle, VideoMode},
Expand Down
50 changes: 0 additions & 50 deletions src/platform_impl/linux/clipboard.rs

This file was deleted.

6 changes: 1 addition & 5 deletions src/platform_impl/linux/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
target_os = "openbsd"
))]

mod clipboard;
mod device;
mod event_loop;
mod icon;
Expand All @@ -23,10 +22,7 @@ mod window;
pub mod taskbar;
pub mod x11;

pub use self::{
clipboard::Clipboard,
keycode::{keycode_from_scancode, keycode_to_scancode},
};
pub use self::keycode::{keycode_from_scancode, keycode_to_scancode};
pub(crate) use event_loop::PlatformSpecificEventLoopAttributes;
pub use event_loop::{EventLoop, EventLoopProxy, EventLoopWindowTarget};
pub use icon::PlatformIcon;
Expand Down
43 changes: 0 additions & 43 deletions src/platform_impl/macos/clipboard.rs

This file was deleted.

2 changes: 0 additions & 2 deletions src/platform_impl/macos/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
mod app;
mod app_delegate;
mod app_state;
mod clipboard;
mod event;
mod event_loop;
mod ffi;
Expand All @@ -26,7 +25,6 @@ use std::{fmt, ops::Deref, sync::Arc};
pub(crate) use self::event_loop::PlatformSpecificEventLoopAttributes;
pub use self::{
app_delegate::{get_aux_state_mut, AuxDelegateState},
clipboard::Clipboard,
event::KeyEventExtra,
event_loop::{EventLoop, EventLoopWindowTarget, Proxy as EventLoopProxy},
keycode::{keycode_from_scancode, keycode_to_scancode},
Expand Down
Loading

0 comments on commit 71d744c

Please sign in to comment.