From b8a294db5ae6831c54be368e41fa8418a6f73bcb Mon Sep 17 00:00:00 2001 From: iximeow Date: Sun, 23 Jun 2024 23:43:06 -0700 Subject: remove selects_cs(), cs() now does the right thing --- src/long_mode/mod.rs | 5 +---- src/protected_mode/mod.rs | 5 +---- src/real_mode/mod.rs | 5 +---- 3 files changed, 3 insertions(+), 12 deletions(-) diff --git a/src/long_mode/mod.rs b/src/long_mode/mod.rs index 5ed35e3..0aaa35f 100644 --- a/src/long_mode/mod.rs +++ b/src/long_mode/mod.rs @@ -4858,11 +4858,8 @@ impl Prefixes { fn set_lock(&mut self) { self.bits |= 0x4 } #[inline] pub fn lock(&self) -> bool { self.bits & 0x4 == 4 } - #[deprecated(since = "0.0.1", note = "pub fn cs has never returned `bool` indicating the current selector is `cs`. use `selects_cs` for this purpose, until 2.x that will correct `pub fn cs`.")] #[inline] - pub fn cs(&mut self) {} - #[inline] - pub fn selects_cs(&self) -> bool { self.segment == Segment::CS } + pub fn cs(&self) -> bool { self.segment == Segment::CS } #[inline] pub fn ds(&self) -> bool { self.segment == Segment::DS } #[inline] diff --git a/src/protected_mode/mod.rs b/src/protected_mode/mod.rs index 956b5e3..154a746 100644 --- a/src/protected_mode/mod.rs +++ b/src/protected_mode/mod.rs @@ -4790,11 +4790,8 @@ impl Prefixes { fn set_lock(&mut self) { self.bits |= 0x4 } #[inline] pub fn lock(&self) -> bool { self.bits & 0x4 == 4 } - #[deprecated(since = "0.0.1", note = "pub fn cs has never returned `bool` indicating the current selector is `cs`. use `selects_cs` for this purpose, until 2.x that will correct `pub fn cs`.")] #[inline] - pub fn cs(&mut self) {} - #[inline] - pub fn selects_cs(&self) -> bool { self.segment == Segment::CS } + pub fn cs(&self) -> bool { self.segment == Segment::CS } #[inline] fn set_cs(&mut self) { self.segment = Segment::CS } #[inline] diff --git a/src/real_mode/mod.rs b/src/real_mode/mod.rs index 1ea89cd..b29cd1a 100644 --- a/src/real_mode/mod.rs +++ b/src/real_mode/mod.rs @@ -4790,11 +4790,8 @@ impl Prefixes { fn set_lock(&mut self) { self.bits |= 0x4 } #[inline] pub fn lock(&self) -> bool { self.bits & 0x4 == 4 } - #[deprecated(since = "0.0.1", note = "pub fn cs has never returned `bool` indicating the current selector is `cs`. use `selects_cs` for this purpose, until 2.x that will correct `pub fn cs`.")] #[inline] - pub fn cs(&mut self) {} - #[inline] - pub fn selects_cs(&self) -> bool { self.segment == Segment::CS } + pub fn cs(&self) -> bool { self.segment == Segment::CS } #[inline] fn set_cs(&mut self) { self.segment = Segment::CS } #[inline] -- cgit v1.1