Skip to content

Commit

Permalink
remove commented code, improve attribution
Browse files Browse the repository at this point in the history
  • Loading branch information
BillyDM committed Apr 2, 2024
1 parent dab368b commit 702e7dd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
4 changes: 3 additions & 1 deletion src/x11/drag_n_drop.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// Code copied and modifed from https://github.com/rust-windowing/winit/blob/master/src/platform_impl/linux/x11/dnd.rs
// The following code was copied and modified from:
// https://github.com/rust-windowing/winit/blob/44aabdddcc9f720aec860c1f83c1041082c28560/src/platform_impl/linux/x11/dnd.rs
// winit license (Apache License 2.0): https://github.com/rust-windowing/winit/blob/44aabdddcc9f720aec860c1f83c1041082c28560/LICENSE

use std::{
io,
Expand Down
16 changes: 3 additions & 13 deletions src/x11/xcb_connection/get_property.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// Code copied and modifed from https://github.com/rust-windowing/winit/blob/master/src/platform_impl/linux/x11/util/window_property.rs
// The following code was copied and modified from:
// https://github.com/rust-windowing/winit/blob/44aabdddcc9f720aec860c1f83c1041082c28560/src/platform_impl/linux/x11/util/window_property.rs
// winit license (Apache License 2.0): https://github.com/rust-windowing/winit/blob/44aabdddcc9f720aec860c1f83c1041082c28560/LICENSE

use std::error::Error;
use std::ffi::c_int;
Expand All @@ -19,18 +21,6 @@ pub enum GetPropertyError {
FormatMismatch(c_int),
}

/*
impl GetPropertyError {
pub fn is_actual_property_type(&self, t: xproto::Atom) -> bool {
if let GetPropertyError::TypeMismatch(actual_type) = *self {
actual_type == t
} else {
false
}
}
}
*/

impl<T: Into<ReplyError>> From<T> for GetPropertyError {
fn from(e: T) -> Self {
Self::X11rbError(Arc::new(e.into()))
Expand Down

0 comments on commit 702e7dd

Please sign in to comment.