Skip to content

Commit

Permalink
Remove additional unused classes
Browse files Browse the repository at this point in the history
  • Loading branch information
swquinn committed Aug 2, 2019
1 parent d54255f commit 1ba1370
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
17 changes: 0 additions & 17 deletions hon/parsers/summary_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,23 +151,6 @@ def parse_title(self):
return ''


class SummaryItem():
"""An item in `SUMMARY.md` which could be either a separator or a ``Link``."""

#: A separator (`---`).
SEPARATOR = 'Separator'


class SummaryItemSeparator(SummaryItem):
def __eq__(self, other):
if self.__class__ == other.__class__:
return True
return False

def __repr__(self):
return 'SummaryItemSeparator()'


class SectionNumber():
"""A section number like "1.2.3", basically just a newtype'd `Vec<u32>` with
a pretty `Display` impl."""
Expand Down
2 changes: 1 addition & 1 deletion tests/parsers/test_summary_parser.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest
from hon.parsing import MarkdownParser
from hon.parsers.summary_parser import (
SectionNumber, SummaryParser, SummaryItemSeparator, stringify_events
SectionNumber, SummaryParser, stringify_events
)
from hon.structure import Part, Section
from hon.utils.mdutils import flatten_tree
Expand Down

0 comments on commit 1ba1370

Please sign in to comment.