Skip to content

Commit 50c52b7

Browse files
authored
Deprecate FeatureFlag initializer with unused parameter. (#1174)
1 parent 9f981f1 commit 50c52b7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Sources/SwiftDocC/Utility/FeatureFlags.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,17 @@ public struct FeatureFlags: Codable {
4141
set { isParametersAndReturnsValidationEnabled = newValue }
4242
}
4343

44+
/// Creates a set of feature flags with all default values.
45+
public init() {}
46+
4447
/// Creates a set of feature flags with the given values.
4548
///
4649
/// - Parameters:
4750
/// - additionalFlags: Any additional flags to set.
4851
///
4952
/// This field allows clients to set feature flags without adding new API.
53+
@available(*, deprecated, renamed: "init()", message: "Use 'init()' instead. This deprecated API will be removed after 6.2 is released")
54+
@_disfavoredOverload
5055
public init(
5156
additionalFlags: [String : Bool] = [:]
5257
) {

0 commit comments

Comments
 (0)