Skip to content
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

Remove some unused methods from MediaManager #2774

Merged

Conversation

SKobziev
Copy link
Contributor

Fixes #2450

This PR is [ready] for review.

Risk

This PR makes [no ] API changes.

Summary

There are some unused methods in base class MediaManager which are redefined in MediaManagerImpl. These methods(PlayA2DPSource, StopA2DPSource) aren't used in any place. Based on this, the methods were removed
Copy of #2681

CLA

@jacobkeeler jacobkeeler changed the title Remove some unsed methods from MediaManager Remove some unused methods from MediaManager Apr 15, 2021
@@ -40,9 +40,6 @@ namespace media_manager {

class MediaManager {
public:
virtual void PlayA2DPSource(int32_t application_key) = 0;
virtual void StopA2DPSource(int32_t application_key) = 0;

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deprecate instead of remove, we need to wait for a major release to remove public methods

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jacobkeeler the following changes were done:

  1. Merge latest develop branch in 40c3b87
  2. Reverted changes related to this PR in 7cf8f53
  3. Mark redundant code as deprecated in 07d5fe0

Not sure if I need to remove related unit tests for now or should they be removed together with deprecated functions

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AKalinich-Luxoft I think that the associated tests can be removed

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jacobkeeler removed in c1d69b6

@jacobkeeler jacobkeeler merged commit 353357f into develop May 11, 2021
@jacobkeeler jacobkeeler deleted the fix/Remove_unused_functionality_from_MediaManager branch May 11, 2021 13:43
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.

6 participants