Remove window::Id::MAIN constant

This commit is contained in:
Héctor Ramón Jiménez 2024-06-20 01:13:42 +02:00
parent 92e08c8f07
commit c5f4bebeda
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
6 changed files with 10 additions and 11 deletions

View file

@ -11,9 +11,6 @@ pub struct Id(u64);
static COUNT: AtomicU64 = AtomicU64::new(1);
impl Id {
/// The reserved window [`Id`] for the first window in an Iced application.
pub const MAIN: Self = Id(0);
/// Creates a new unique window [`Id`].
pub fn unique() -> Id {
Id(COUNT.fetch_add(1, atomic::Ordering::Relaxed))