File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed
Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff 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-
3826macro_rules! flag_builder_api {
3927 ( $( #[ $attr: meta] ) * => $name: ident, $flag: ident) => {
4028 $( #[ $attr] ) *
@@ -90,7 +78,6 @@ macro_rules! impl_bit_ops {
9078
9179macro_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);
760747impl 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 ! ( ) ;
You can’t perform that action at this time.
0 commit comments