Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancoLiberali committed Jan 15, 2024
1 parent befb301 commit 317216a
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions condition/gorm_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -443,12 +443,3 @@ func (query *GormQuery) Delete() (int64, error) {

return deleteTx.RowsAffected, deleteTx.Error
}

// from a list of uint, return the first or UndefinedJoinNumber in case the list is empty
func GetJoinNumber(joinNumberList []uint) int {
if len(joinNumberList) == 0 {
return undefinedAppearance
}

return int(joinNumberList[0])
}

0 comments on commit 317216a

Please sign in to comment.