Skip to content

Commit

Permalink
remove unused 'ifdef' branches
Browse files Browse the repository at this point in the history
  • Loading branch information
squell committed Jan 6, 2025
1 parent 8afb68d commit d3518ce
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/defaults/settings_dsl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ macro_rules! initializer_of {
($id:ident, $(=enum $k: ident;)+ $value: ident) => { $crate::defaults::enums::$id::$value };
($id:ident, None) => { None };
($id:ident, $value: expr) => { Some($value.into()) };
($id:ident, $($_: tt)*) => { ifdef![] };
($id:ident, $($_: tt)*) => { return None };
}

macro_rules! result_of {
Expand Down Expand Up @@ -131,13 +131,6 @@ macro_rules! ifdef {
($($_: expr)+; $then: expr; $else: expr) => {
$then
};

() => {
return None
};
($body: expr) => {
$body
};
}

macro_rules! emit {
Expand Down

0 comments on commit d3518ce

Please sign in to comment.