Skip to content

Commit

Permalink
Remove some dead code.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmtroffaes committed Mar 28, 2022
1 parent aa89f67 commit 82d2bae
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions src/sphinxcontrib/bibtex/style/referencing/basic_label.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ class BasicLabelParentheticalReferenceStyle(BaseReferenceStyle):
#: Bracket style.
bracket: BracketStyle = field(default_factory=BracketStyle)

#: Person style.
person: PersonStyle = field(default_factory=PersonStyle)

def role_names(self) -> Iterable[str]:
return [f'p{full_author}' for full_author in ['', 's']]

Expand Down
2 changes: 1 addition & 1 deletion src/sphinxcontrib/bibtex/style/referencing/label.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class LabelReferenceStyle(GroupReferenceStyle):
def __post_init__(self):
self.styles.extend([
BasicLabelParentheticalReferenceStyle(
bracket=self.bracket_parenthetical, person=self.person),
bracket=self.bracket_parenthetical),
BasicLabelTextualReferenceStyle(
bracket=self.bracket_textual,
person=self.person,
Expand Down

0 comments on commit 82d2bae

Please sign in to comment.