diff --git a/.deadcode-out b/.deadcode-out index 40c1ec7e01..3bf759ffe0 100644 --- a/.deadcode-out +++ b/.deadcode-out @@ -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 diff --git a/models/project/column.go b/models/project/column.go index 222f448599..b30aab4699 100644 --- a/models/project/column.go +++ b/models/project/column.go @@ -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).