Skip to content

Commit

Permalink
ArrayBuilder: remove an extra method confusing Xcode 14.3
Browse files Browse the repository at this point in the history
Newer Xcode was complaining about ambiguity between `buildBlock(T)` and
`buildBlock(T...)` on our own unit test. I've left the latter as a more general
one.
  • Loading branch information
aleh committed Jul 9, 2023
1 parent c1f090b commit 5f09ad8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion MMMCommonCore.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Pod::Spec.new do |s|

s.name = "MMMCommonCore"
s.version = "1.15.0"
s.version = "1.15.1"
s.summary = "Small bits and pieces reused in many pods from MMMTemple"
s.description = s.summary
s.homepage = "https://github.com/mediamonks/#{s.name}"
Expand Down
4 changes: 0 additions & 4 deletions Sources/MMMCommonCore/ArrayBuilder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,6 @@ public struct ArrayBuilder<T> {
return []
}

public static func buildBlock(_ component: T) -> [T] {
return [component]
}

public static func buildBlock(_ components: T...) -> [T] {
return components
}
Expand Down

0 comments on commit 5f09ad8

Please sign in to comment.