Skip to content

Commit a04df34

Browse files
committed
wip: refactor: extern crate tracing
1 parent 191b0e7 commit a04df34

File tree

8 files changed

+4
-8
lines changed

8 files changed

+4
-8
lines changed

src/cursor.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
use std::io::Read;
22
use std::time::Duration;
33

4-
use tracing::warn;
54
use xcursor::parser::{parse_xcursor, Image};
65
use xcursor::CursorTheme;
76

src/input_handler.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ use smithay::backend::input::AbsolutePositionEvent;
3636

3737
#[cfg(feature = "winit")]
3838
use smithay::output::Output;
39-
use tracing::{debug, error, info};
4039

4140
use crate::state::Backend;
4241
#[cfg(feature = "udev")]

src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
allow(dead_code, unused_imports)
77
)]
88

9+
#[allow(unused_imports)]
10+
#[macro_use]
11+
extern crate tracing;
12+
913
pub mod cursor;
1014
pub mod drawing;
1115
pub mod focus;

src/shell/x11.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ use smithay::wayland::selection::primary_selection::{
1717
use smithay::wayland::selection::SelectionTarget;
1818
use smithay::xwayland::xwm::{Reorder, ResizeEdge as X11ResizeEdge, XwmId};
1919
use smithay::xwayland::{X11Surface, X11Wm, XwmHandler};
20-
use tracing::{error, trace};
2120

2221
use crate::focus::KeyboardFocusTarget;
2322
use crate::state::Backend;

src/shell/xdg.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ use smithay::wayland::shell::xdg::{
2020
Configure, PopupSurface, PositionerState, ToplevelSurface, XdgShellHandler, XdgShellState,
2121
XdgToplevelSurfaceData,
2222
};
23-
use tracing::{trace, warn};
2423

2524
use crate::focus::KeyboardFocusTarget;
2625
use crate::shell::{TouchMoveSurfaceGrab, TouchResizeSurfaceGrab};

src/state.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ use std::sync::atomic::AtomicBool;
33
use std::sync::{Arc, Mutex};
44
use std::time::Duration;
55

6-
use tracing::{info, warn};
7-
86
use smithay::{
97
backend::renderer::element::{
108
default_primary_scanout_output_compare, utils::select_dmabuf_feedback, RenderElementStates,

src/udev.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ use smithay::wayland::drm_lease::{
7575
use smithay::{delegate_dmabuf, delegate_drm_lease};
7676
use smithay_drm_extras::drm_scanner::{DrmScanEvent, DrmScanner};
7777
use smithay_drm_extras::edid::EdidInfo;
78-
use tracing::{debug, error, info, trace, warn};
7978

8079
// we cannot simply pick the first supported format of the intersection of *all* formats, because:
8180
// - we do not want something like Abgr4444, which looses color information, if something better is available

src/winit.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ use smithay::wayland::compositor;
3333
use smithay::wayland::dmabuf::{
3434
DmabufFeedback, DmabufFeedbackBuilder, DmabufGlobal, DmabufHandler, DmabufState, ImportNotifier,
3535
};
36-
use tracing::{error, info, warn};
3736

3837
use crate::drawing::*;
3938
use crate::render::*;

0 commit comments

Comments
 (0)