Skip to content

Commit

Permalink
fix(ios): remove unused functions from database utilities
Browse files Browse the repository at this point in the history
  • Loading branch information
autoreleasefool committed May 30, 2024
1 parent 55fedf2 commit 462a915
Showing 1 changed file with 0 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,19 +61,3 @@ public func initializeApproachDatabase(

return dbQueue
}

func coallesce<T>(_ value: InitialValue<T>?, ifHasAllOf: Any?...) -> InitialValue<T>? {
if ifHasAllOf.compactMap({ $0 }).count < ifHasAllOf.count {
return value
} else {
return value == nil ? .default : value
}
}

func coallesce<T>(_ value: InitialValue<T>?, ifHasOneOf: Any?...) -> InitialValue<T>? {
if ifHasOneOf.compactMap({ $0 }).isEmpty {
return value
} else {
return value == nil ? .default : value
}
}

0 comments on commit 462a915

Please sign in to comment.