Remove profiling decorators

This commit is contained in:
Keith Edmunds 2025-03-08 12:03:47 +00:00
parent 2f8afeb814
commit 85493de179

View File

@ -624,7 +624,6 @@ class PlaylistModel(QAbstractTableModel):
for a in self.playlist_rows.values()
if not a.played and a.track_id is not None
]
# log.debug(f"{self}: get_unplayed_rows() returned: {result=}")
return result
def headerData(
@ -1146,7 +1145,6 @@ class PlaylistModel(QAbstractTableModel):
self.signals.resize_rows_signal.emit(self.playlist_id)
session.commit()
@line_profiler.profile
def reset_track_sequence_row_numbers(self) -> None:
"""
Signal handler for when row ordering has changed.
@ -1281,7 +1279,6 @@ class PlaylistModel(QAbstractTableModel):
return header_text
@line_profiler.profile
def rowCount(self, index: QModelIndex = QModelIndex()) -> int:
"""Standard function for view"""
@ -1604,7 +1601,6 @@ class PlaylistModel(QAbstractTableModel):
else:
self.insert_row(proposed_row_number=row_number, track_id=track_id)
@line_profiler.profile
def update_track_times(self) -> None:
"""
Update track start/end times in self.playlist_rows