diff --git a/git_time_tracker/format/cli.py b/git_time_tracker/format/cli.py index 44605f7..b700358 100644 --- a/git_time_tracker/format/cli.py +++ b/git_time_tracker/format/cli.py @@ -57,8 +57,6 @@ def generate_report( time_and_label = [(duration, label) for label, duration in time_per_label.items()] time_and_label.sort(reverse=True) - - # yield '-' * LINE_LENGTH yield '\n' for total_time, label in time_and_label: diff --git a/git_time_tracker/format/icalendar.py b/git_time_tracker/format/icalendar.py index 0bb1559..8472e0d 100644 --- a/git_time_tracker/format/icalendar.py +++ b/git_time_tracker/format/icalendar.py @@ -25,8 +25,6 @@ def create_title(sample: RealizedActivitySample) -> tuple[str, str]: def generate_calendar( samples: list[RealizedActivitySample], ) -> icalendar.Calendar: - max_title_parts = 2 - cal = icalendar.Calendar() cal.add('prodid', '-//personal_data_calendar//example.org//') cal.add('version', '2.0') diff --git a/git_time_tracker/source/csv_file.py b/git_time_tracker/source/csv_file.py index f65ee6b..ab36b66 100644 --- a/git_time_tracker/source/csv_file.py +++ b/git_time_tracker/source/csv_file.py @@ -11,7 +11,6 @@ logger = getLogger(__name__) def iterate_samples_from_dicts(rows: list[dict[str, Any]]) -> Iterator[ActivitySample]: assert len(rows) > 0 - max_title_parts = 2 if True: event_data = rows[len(rows) // 2] # Hopefully select a useful representative.