Skip to content

Commit

Permalink
style: remove unused CommitConfig::{omit,include} methods
Browse files Browse the repository at this point in the history
  • Loading branch information
the-wondersmith authored and oknozor committed Jun 23, 2023
1 parent 93c9903 commit 3ad69eb
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions src/conventional/commit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,6 @@ impl CommitConfig {
omit_from_changelog: false,
}
}

#[allow(dead_code)]
pub(crate) fn omit(&mut self) {
self.omit_from_changelog = true;
}

#[allow(dead_code)]
pub(crate) fn include(&mut self) {
self.omit_from_changelog = false;
}
}

impl Commit {
Expand Down Expand Up @@ -472,7 +462,7 @@ mod test {
);

// Act
config.omit();
config.omit_from_changelog = true;

// Assert
assert!(
Expand All @@ -481,7 +471,7 @@ mod test {
);

// Act
config.include();
config.omit_from_changelog = false;

// Assert
assert!(
Expand Down

0 comments on commit 3ad69eb

Please sign in to comment.