Skip to content

Commit 721496a

Browse files
committed
strip useless API
1 parent 3896c60 commit 721496a

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

src/sys/flags.rs

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,6 @@ macro_rules! impl_from_for_flag_types {
2323
};
2424
}
2525

26-
macro_rules! impl_flags {
27-
($flagstype: ty) => {
28-
impl $flagstype {
29-
/// We do not enforce valid flags in the library.
30-
/// This function will always return `true`.
31-
pub fn is_valid(&self) -> bool {
32-
true
33-
}
34-
}
35-
};
36-
}
37-
3826
macro_rules! flag_builder_api {
3927
($(#[$attr:meta])* => $name: ident, $flag: ident) => {
4028
$(#[$attr])*
@@ -90,7 +78,6 @@ macro_rules! impl_bit_ops {
9078

9179
macro_rules! flags_api {
9280
($type: ty) => {
93-
impl_flags!($type);
9481
impl_from_for_flag_types!($type);
9582
impl_bit_ops!($type);
9683
};
@@ -760,12 +747,6 @@ pub struct IndividualFlags(RawFlags);
760747
impl IndividualFlags {
761748
/// Default (empty)
762749
pub const NONE: Self = Self(0);
763-
/// We do not enforce valid flags in the library.
764-
/// This function will return `true` if any bits
765-
/// are set that do not correspond to allowed flags.
766-
pub fn is_valid(&self) -> bool {
767-
true
768-
}
769750
bits!();
770751
all!();
771752
contains!();

0 commit comments

Comments
 (0)