Remove debug prints that probably shouldn't have been merged

Also add a comment to the one place `eprintln!` is used to explain why
it's appropriate.
This commit is contained in:
Ian Douglas Scott 2025-07-02 18:46:01 -07:00 committed by Victoria Brekenfeld
parent 2b4890c550
commit e5fbf21fee
4 changed files with 3 additions and 3 deletions

View file

@ -113,7 +113,7 @@ impl WinitState {
.get::<RefCell<OutputConfig>>()
.unwrap()
.borrow_mut();
if dbg!(config.mode.0) != dbg!((size.w, size.h)) {
if config.mode.0 != (size.w, size.h) {
if !test_only {
config.mode = ((size.w, size.h), None);
}

View file

@ -2692,7 +2692,7 @@ impl TilingLayout {
data.add_window(bound_idx);
bound_idx
};
tree.make_nth_sibling(&new_id, dbg!(idx)).unwrap();
tree.make_nth_sibling(&new_id, idx).unwrap();
*window.tiling_node_id.lock().unwrap() = Some(new_id);
window
}

View file

@ -740,7 +740,6 @@ impl Workspaces {
// If this is the first output added, create workspaces for pinned workspaces from config
for pinned in std::mem::take(&mut self.persisted_workspaces) {
tracing::error!("pinned workspace: {:?}", pinned);
let workspace = create_workspace_from_pinned(
&pinned,
workspace_state,

View file

@ -25,6 +25,7 @@ pub fn restore_nofile_limit() {
};
if let Err(err) = setrlimit(Resource::Nofile, limits) {
// Use `eprintln!` instead of `tracing` since this is used in `pre_exec`.
eprintln!("Failed to restore nofile soft limit: {:?}", err);
}
}