-
Notifications
You must be signed in to change notification settings - Fork 155
Cleanup[bmqt::Uri]: add deprecation note for initialize/shutdown #1019
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| { | ||
| bdlma::LocalSequentialAllocator<1024> localAllocator( | ||
| bslma::Default::allocator()); | ||
| bdlma::LocalSequentialAllocator<1024> localAllocator; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It uses the default allocator by default if no allocator provided
|
|
||
| // Shut down the parser is a no-op. | ||
| bmqt::UriParser::shutdown(); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
initialize/shutdown are simply no-op, not worth having any tests for it anymore
216ae7a to
c1be850
Compare
cf26d48 to
fa6d1fb
Compare
…wn; remove its usage Signed-off-by: Evgeny Malygin <[email protected]>
fa6d1fb to
226628b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Build 3135 of commit 226628b has completed with FAILURE
| /// called. | ||
| static void shutdown(); | ||
| /// DEPRECATED: Not needed anymore (no-op). This method will be marked | ||
| /// as `BSLA_DEPRECATED` in future release of libbmq. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've seen this pattern in other files.
For some reason, we don't add annotation BSLA_DEPRECATED right away and put a comment before this. Maybe it is done for someone who has warnings are errors setting
| bsls::TimeUtil::initialize(); | ||
|
|
||
| // Prepare the UriParser regexp | ||
| bmqt::UriParser::initialize(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that there was no shutdown in bmqtool.
Also, there were no initialize/shutdown in our tutorial clients.
bmqt::Uridocsbmqt_uri.h/bmqt_uri.cppbmqt::UriParse::initialize/bmqt::UriParse::shutdownbmqt::UriParse::initialize/bmqt::UriParse::shutdownusage from the codebasebmqt::UriRegEx usage