-
Notifications
You must be signed in to change notification settings - Fork 3k
Remove deprecated Callback methods #11880
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
Conversation
@kjbracey-arm, thank you for your changes. |
The removal of deprecated API is planned for Mbed 6. Are we already taking PRs for that release? |
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.
Less code: great !
Soon, once we have 5.15rc1. |
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.
Could we change the:
Migration actions required
Replace removed calls with equivalents shown in previous deprecation warnings since Mbed OS 5.4.
to point user to the right calls with links to up to date docs?
93615f9
to
f56f6fd
Compare
Updated - missed one deprecated freestanding Callback-maker function. |
Done - not sure about the docs link though. This highlighted that one of the 5.4 deprecations was actually bogus at the time: you couldn't replace |
I'll be doing a callback docs review alongside the next PR, which makes more significant changes, including the "trivial mode". I'm just feeding this one through first cos it's easy and quick to review. |
CI started |
Test run: FAILEDSummary: 3 of 4 test jobs failed Failed test jobs:
|
Failures are related, please review |
f56f6fd
to
cff14d3
Compare
CI restarted |
Test run: FAILEDSummary: 1 of 11 test jobs failed Failed test jobs:
|
Failures might be related, please review (I restarted the test to make sure they are there). |
cff14d3
to
0b28553
Compare
Don't see anything related in the CI, I think some platform may have been having a glitch on the master I was on. Rebased. |
CI started |
Test run: SUCCESSSummary: 11 of 11 test jobs passed |
Description (required)
Deprecated methods in
Callback
removed.Summary of change (What the change is for and why)
Removing obsolete forms that were deprecated in Mbed OS 5.1 and 5.4. Reduce code size, speed up compilation slightly.
Documentation (Details of any document updates required)
None.
Pull request type (required)
Test results (required)
Release Notes (required for feature/major PRs)
Summary of changes
Deprecated methods in
Callback
removed.Impact of changes
Some code that was generating deprecation warnings will no longer compile at all.
Migration actions required
Callback(arg, func)
with the reversedCallback(func, arg)
attach
with simple assignment, such ascallback = func;
orcallback = { func, arg };