build: remove unused comment and import

This commit is contained in:
ardocrat 2023-07-23 23:51:01 +03:00
parent 8f4589615e
commit 40f710bfc9

View file

@ -14,7 +14,7 @@
use std::sync::atomic::{AtomicI32, Ordering}; use std::sync::atomic::{AtomicI32, Ordering};
use egui::{Button, PointerState, Response, RichText, Sense, Spinner, Vec2, Widget}; use egui::{Button, PointerState, Response, RichText, Sense, Spinner, Widget};
use egui::epaint::{CircleShape, Color32, FontId, RectShape, Rounding, Stroke}; use egui::epaint::{CircleShape, Color32, FontId, RectShape, Rounding, Stroke};
use egui::epaint::text::TextWrapping; use egui::epaint::text::TextWrapping;
use egui::text::{LayoutJob, TextFormat}; use egui::text::{LayoutJob, TextFormat};
@ -165,7 +165,7 @@ impl View {
// Setup radius. // Setup radius.
let mut r = 42.0 * 0.5; let mut r = 42.0 * 0.5;
let size = Vec2::splat(2.0 * r + 5.0); let size = egui::Vec2::splat(2.0 * r + 5.0);
let (rect, br) = ui.allocate_at_least(size, Sense::click_and_drag()); let (rect, br) = ui.allocate_at_least(size, Sense::click_and_drag());
let mut icon_size = 22.0; let mut icon_size = 22.0;
@ -335,7 +335,6 @@ impl View {
} }
/// Fields to handle platform-specific display insets (cutouts).
lazy_static! { lazy_static! {
static ref TOP_DISPLAY_INSET: AtomicI32 = AtomicI32::new(0); static ref TOP_DISPLAY_INSET: AtomicI32 = AtomicI32::new(0);
static ref RIGHT_DISPLAY_INSET: AtomicI32 = AtomicI32::new(0); static ref RIGHT_DISPLAY_INSET: AtomicI32 = AtomicI32::new(0);