Skip to content

Commit d3f648c

Browse files
committed
Remove nonsensical register reader helper
1 parent c84f913 commit d3f648c

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

src/generate/generic.rs

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -198,24 +198,6 @@ where
198198
}
199199
}
200200

201-
impl<REG: Register<Ux=bool>> R<REG> {
202-
/// Value of the field as raw bits.
203-
#[inline(always)]
204-
pub fn bit(&self) -> bool {
205-
self.bits
206-
}
207-
/// Returns `true` if the bit is clear (0).
208-
#[inline(always)]
209-
pub fn bit_is_clear(&self) -> bool {
210-
!self.bit()
211-
}
212-
/// Returns `true` if the bit is set (1).
213-
#[inline(always)]
214-
pub fn bit_is_set(&self) -> bool {
215-
self.bit()
216-
}
217-
}
218-
219201
/// Register writer.
220202
///
221203
/// Used as an argument to the closures in the `write` and `modify` methods of the register.

0 commit comments

Comments
 (0)