0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-02-18 20:06:20 -05:00

chore: Remove UpdateColumnSorting

- Introduced in c69c01d2b6 and removed in
the same commit, no usage at all.
This commit is contained in:
Gusted 2025-01-30 12:12:49 +01:00
parent 901b32ce16
commit 8c3bfcac3b
No known key found for this signature in database
GPG key ID: FD821B732837125F
2 changed files with 0 additions and 15 deletions

View file

@ -61,7 +61,6 @@ code.gitea.io/gitea/models/perm/access
GetRepoWriters
code.gitea.io/gitea/models/project
UpdateColumnSorting
ChangeProjectStatus
code.gitea.io/gitea/models/repo

View file

@ -305,20 +305,6 @@ func SetDefaultColumn(ctx context.Context, projectID, columnID int64) error {
})
}
// UpdateColumnSorting update project column sorting
func UpdateColumnSorting(ctx context.Context, cl ColumnList) error {
return db.WithTx(ctx, func(ctx context.Context) error {
for i := range cl {
if _, err := db.GetEngine(ctx).ID(cl[i].ID).Cols(
"sorting",
).Update(cl[i]); err != nil {
return err
}
}
return nil
})
}
func GetColumnsByIDs(ctx context.Context, projectID int64, columnsIDs []int64) (ColumnList, error) {
columns := make([]*Column, 0, 5)
if err := db.GetEngine(ctx).