Skip to content

Commit e99e5f5

Browse files
authored
SWIFT-727 Re-export cleanupMongoSwift (#411)
1 parent 64223f7 commit e99e5f5

File tree

3 files changed

+6
-12
lines changed

3 files changed

+6
-12
lines changed

Sources/MongoSwift/MongoSwift.swift

-12
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,6 @@ private final class MongocInitializer {
1212
}
1313
}
1414

15-
/// :nodoc:
16-
@available(*, deprecated, message: "Calling this method no longer has any effect.")
17-
public func initialize() {
18-
initializeMongoc()
19-
}
20-
21-
/// :nodoc:
22-
@available(*, deprecated, message: "Use cleanupMongoSwift() instead.")
23-
public func cleanup() {
24-
cleanupMongoSwift()
25-
}
26-
2715
/// Initializes libmongoc. Repeated calls to this method have no effect.
2816
internal func initializeMongoc() {
2917
_ = MongocInitializer.shared

Sources/MongoSwiftSync/Exports.stencil

+3
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,6 @@
1616
// Manually add typealiases
1717
@_exported import typealias MongoSwift.InsertManyOptions
1818
@_exported import typealias MongoSwift.ServerErrorCode
19+
20+
// Manually add cleanup method
21+
@_exported import func MongoSwift.cleanupMongoSwift

Sources/MongoSwiftSync/Exports.swift

+3
Original file line numberDiff line numberDiff line change
@@ -129,3 +129,6 @@
129129
// Manually add typealiases
130130
@_exported import typealias MongoSwift.InsertManyOptions
131131
@_exported import typealias MongoSwift.ServerErrorCode
132+
133+
// Manually add cleanup method
134+
@_exported import func MongoSwift.cleanupMongoSwift

0 commit comments

Comments
 (0)