From 5f09ad88fe90561d9da7d543ff5917b2ac79c950 Mon Sep 17 00:00:00 2001 From: Aleh Dzenisiuk Date: Sun, 9 Jul 2023 15:41:29 +0200 Subject: [PATCH] ArrayBuilder: remove an extra method confusing Xcode 14.3 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. --- MMMCommonCore.podspec | 2 +- Sources/MMMCommonCore/ArrayBuilder.swift | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/MMMCommonCore.podspec b/MMMCommonCore.podspec index c0ac4d9..4226afb 100644 --- a/MMMCommonCore.podspec +++ b/MMMCommonCore.podspec @@ -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}" diff --git a/Sources/MMMCommonCore/ArrayBuilder.swift b/Sources/MMMCommonCore/ArrayBuilder.swift index adc13c8..6caebd4 100644 --- a/Sources/MMMCommonCore/ArrayBuilder.swift +++ b/Sources/MMMCommonCore/ArrayBuilder.swift @@ -61,10 +61,6 @@ public struct ArrayBuilder { return [] } - public static func buildBlock(_ component: T) -> [T] { - return [component] - } - public static func buildBlock(_ components: T...) -> [T] { return components }