chore: Remove ChangeProjectStatus

- Introduced in 4027c5dd7c and removed in
the same commit (only used for testing code).
This commit is contained in:
Gusted 2025-01-30 12:16:12 +01:00
parent 8c3bfcac3b
commit b7b52fd04d
No known key found for this signature in database
GPG key ID: FD821B732837125F
3 changed files with 1 additions and 19 deletions

View file

@ -368,21 +368,6 @@ func ChangeProjectStatusByRepoIDAndID(ctx context.Context, repoID, projectID int
return committer.Commit()
}
// ChangeProjectStatus toggle a project between opened and closed
func ChangeProjectStatus(ctx context.Context, p *Project, isClosed bool) error {
ctx, committer, err := db.TxContext(ctx)
if err != nil {
return err
}
defer committer.Close()
if err := changeProjectStatus(ctx, p, isClosed); err != nil {
return err
}
return committer.Commit()
}
func changeProjectStatus(ctx context.Context, p *Project, isClosed bool) error {
p.IsClosed = isClosed
p.ClosedDateUnix = timeutil.TimeStampNow()