Remove unused method

This commit is contained in:
Miguel Jacq 2026-06-07 17:40:11 +10:00
parent 54af723b53
commit 4eb761088d
Signed by: mig5
GPG key ID: 03906B4110AAD3B8

View file

@ -1525,17 +1525,6 @@ class DBManager:
).fetchone() ).fetchone()
return int(row["minutes"] or 0) return int(row["minutes"] or 0)
def time_log_count_for_project(self, project_id: int) -> int:
try:
project_id = self._normalise_project_id(project_id)
except (TypeError, ValueError):
return 0
row = self.conn.execute(
"SELECT COUNT(*) AS c FROM time_log WHERE project_id = ?;",
(project_id,),
).fetchone()
return int(row["c"] or 0)
def project_bucket_status(self, project_id: int) -> dict[str, object] | None: def project_bucket_status(self, project_id: int) -> dict[str, object] | None:
"""Return computed bucket state for a project. """Return computed bucket state for a project.