Skip to content

Commit 8c36ed4

Browse files
authored
x11: drop dead code
Fixes #4214.
1 parent 7b2c9d4 commit 8c36ed4

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/platform_impl/linux/x11/util/memory.rs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
use std::ops::{Deref, DerefMut};
2-
31
use super::*;
42

53
pub(crate) struct XSmartPointer<'a, T> {
@@ -19,20 +17,6 @@ impl<'a, T> XSmartPointer<'a, T> {
1917
}
2018
}
2119

22-
impl<T> Deref for XSmartPointer<'_, T> {
23-
type Target = T;
24-
25-
fn deref(&self) -> &T {
26-
unsafe { &*self.ptr }
27-
}
28-
}
29-
30-
impl<T> DerefMut for XSmartPointer<'_, T> {
31-
fn deref_mut(&mut self) -> &mut T {
32-
unsafe { &mut *self.ptr }
33-
}
34-
}
35-
3620
impl<T> Drop for XSmartPointer<'_, T> {
3721
fn drop(&mut self) {
3822
unsafe {

0 commit comments

Comments
 (0)