diff --git a/GRDB/Utils/Inflections.swift b/GRDB/Utils/Inflections.swift index d93d7acc7..af1f05fd3 100644 --- a/GRDB/Utils/Inflections.swift +++ b/GRDB/Utils/Inflections.swift @@ -9,22 +9,14 @@ extension String { return String(first).uppercased() + dropFirst() } - // Prevent inlining of functions that use `Inflections.default`, in order to - // make sure this global is lazily loaded, even in release builds. - // See https://github.com/groue/GRDB.swift/issues/755#issuecomment-612418053 - // TODO: remove `@inline(never)` when this PR is shipped in the compiler: - // https://github.com/apple/swift/pull/30445 - /// "player" -> "players" /// "players" -> "players" - @inline(never) var pluralized: String { Inflections.default.pluralize(self) } /// "player" -> "player" /// "players" -> "player" - @inline(never) var singularized: String { Inflections.default.singularize(self) }