Skip to content

Commit

Permalink
Remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
sondr3 committed May 12, 2020
1 parent ac6e891 commit 5b4b257
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
9 changes: 0 additions & 9 deletions src/author.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,6 @@ impl Author {
})
}

/// Add curses author has not muttered (yet).
pub fn add_missing(&mut self, curses: &HashMap<String, usize>) {
for curse in curses.keys() {
if !self.curses.contains_key(curse) {
self.curses.insert(curse.into(), 0);
}
}
}

/// `git-anger-management` knows if you've been naughty or not
pub fn is_naughty(&self) -> bool {
!self.curses.is_empty()
Expand Down
8 changes: 0 additions & 8 deletions src/repo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,6 @@ impl Repo {
}
}

/// Add curses that authors haven't muttered yet, for display purposes only
pub fn add_missing(&mut self) {
let curses = self.curses.clone();
for (_, author) in self.authors.iter_mut() {
author.add_missing(&curses);
}
}

/// Count total naughty authors in repository.
fn total_naughty_authors(&self) -> usize {
self.authors.values().filter(|a| a.is_naughty()).count()
Expand Down

0 comments on commit 5b4b257

Please sign in to comment.