Skip to content

Commit 999a8da

Browse files
committed
Remove duplicated code
1 parent f1767bc commit 999a8da

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

adafruit_progressbar/horizontalprogressbar.py

-5
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,5 @@ def _get_horizontal_fill(
149149
) -> Tuple[int, int, int]:
150150
return _start, _end, _incr
151151

152-
def _get_vertical_fill(
153-
self, _start: int, _end: int, _incr: int
154-
) -> Tuple[int, int, int]:
155-
return 0, self.fill_height(), 1
156-
157152
def _invert_fill_direction(self) -> bool:
158153
return self._direction == HorizontalFillDirection.RIGHT_TO_LEFT

adafruit_progressbar/verticalprogressbar.py

-5
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,6 @@ def _get_value_sizes(self, _old_ratio: float, _new_ratio: float) -> Tuple[int, i
146146
_new_ratio * self.fill_height()
147147
)
148148

149-
def _get_horizontal_fill(
150-
self, _start: int, _end: int, _incr: int
151-
) -> Tuple[int, int, int]:
152-
return 0, self.fill_width(), 1
153-
154149
def _get_vertical_fill(
155150
self, _start: int, _end: int, _incr: int
156151
) -> Tuple[int, int, int]:

0 commit comments

Comments
 (0)