Skip to content

Conversation

@kmahar
Copy link
Contributor

@kmahar kmahar commented May 20, 2019

So I realized we had renamed the actual initialization method to initializeMongoc, so I just added an empty initialize() method.
I tested this locally, and if you have a call to MongoSwift.initialize() you will now get the following compiler warning:

/Users/kaitlinmahar/TestProject/Sources/TestProject/main.swift:3:12: warning: 'initialize()' is deprecated: Calling this method no longer has any effect.
MongoSwift.initialize()
           ^

@kmahar kmahar requested review from mbroadst and patrickfreed May 20, 2019 19:42
@kmahar kmahar changed the title Add empty deprecated initialize() Add empty deprecated initialize() and deprecated cleanup() May 20, 2019
@kmahar
Copy link
Contributor Author

kmahar commented May 20, 2019

Edit: since we renamed cleanup I added a deprecated version that calls through to the new one

@kmahar kmahar requested a review from patrickfreed May 20, 2019 19:53
@kmahar kmahar merged commit beaeca3 into master May 21, 2019
@kmahar kmahar deleted the deprecate-init branch May 21, 2019 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants