Skip to content

Commit beaeca3

Browse files
authored
Add empty deprecated initialize() and deprecated cleanup() (#271)
1 parent e83f3c4 commit beaeca3

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Sources/MongoSwift/MongoSwift.swift

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,16 @@ private final class MongocInitializer {
1010
}
1111
}
1212

13+
/// :nodoc:
14+
@available(*, deprecated, message: "Calling this method no longer has any effect.")
15+
public func initialize() {}
16+
17+
/// :nodoc:
18+
@available(*, deprecated, message: "Use cleanupMongoSwift() instead.")
19+
public func cleanup() {
20+
cleanupMongoSwift()
21+
}
22+
1323
/// Initializes libmongoc. Repeated calls to this method have no effect.
1424
internal func initializeMongoc() {
1525
_ = MongocInitializer.shared

0 commit comments

Comments
 (0)