aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorey Schuhen <[email protected]>2024-03-14 08:21:45 +1000
committerCorey Schuhen <[email protected]>2024-03-14 08:21:45 +1000
commit535e4c20e88f131189241bcf1625ff7c32e0443b (patch)
tree7e53d8dc09183ce4a51e19b56022a34af710e7f3
parent242759a600418aaaed1bbbec96a9fc7e7effc383 (diff)
Remove unused methods including incorrect #[must_use...
-rw-r--r--embassy-stm32/src/can/bx/mod.rs16
1 files changed, 0 insertions, 16 deletions
diff --git a/embassy-stm32/src/can/bx/mod.rs b/embassy-stm32/src/can/bx/mod.rs
index ae8bafaa8..33e702c6e 100644
--- a/embassy-stm32/src/can/bx/mod.rs
+++ b/embassy-stm32/src/can/bx/mod.rs
@@ -151,17 +151,6 @@ impl IdReg {
151 Self(reg & 0xFFFF_FFFE) 151 Self(reg & 0xFFFF_FFFE)
152 } 152 }
153 153
154 /// Sets the remote transmission (RTR) flag. This marks the identifier as
155 /// being part of a remote frame.
156 #[must_use = "returns a new IdReg without modifying `self`"]
157 /*fn with_rtr(self, rtr: bool) -> IdReg {
158 if rtr {
159 Self(self.0 | Self::RTR_MASK)
160 } else {
161 Self(self.0 & !Self::RTR_MASK)
162 }
163 }*/
164
165 /// Returns the identifier. 154 /// Returns the identifier.
166 fn to_id(self) -> Id { 155 fn to_id(self) -> Id {
167 if self.is_extended() { 156 if self.is_extended() {
@@ -189,11 +178,6 @@ impl IdReg {
189 self.0 & Self::IDE_MASK != 0 178 self.0 & Self::IDE_MASK != 0
190 } 179 }
191 180
192 /// Returns `true` if the identifier is a standard identifier.
193 /*fn is_standard(self) -> bool {
194 !self.is_extended()
195 }*/
196
197 /// Returns `true` if the identifer is part of a remote frame (RTR bit set). 181 /// Returns `true` if the identifer is part of a remote frame (RTR bit set).
198 fn rtr(self) -> bool { 182 fn rtr(self) -> bool {
199 self.0 & Self::RTR_MASK != 0 183 self.0 & Self::RTR_MASK != 0