Skip to content

Removed Deprecated for 7.0 #3435

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

Merged
13 commits merged into from
Sep 11, 2020
Merged

Removed Deprecated for 7.0 #3435

13 commits merged into from
Sep 11, 2020

Conversation

azchohfi
Copy link
Contributor

@azchohfi azchohfi commented Aug 17, 2020

Removed:

  • Major components:
    • TabView/TabViewItem
    • HeaderedTextBlock
    • FacebookService and Microsoft.Toolkit.Uwp.Services project
    • RSS Parsers
  • Smaller methods:
    • StringExtensions.ToSafeString
    • LinkedIn, Twitter and Weibo sync Logout methods.
    • ConnectedAnimations.SetListDataItemForNextConnectedAnnimation
    • TileControl.IsCompositionSupported
    • NotifyTaskCompletion
    • Singleton

This is still missing the update on the docs repo.

Contributes towards #3062

Fixes #3396

PR Type

What kind of change does this PR introduce?

  • Other... Please describe: Removing dead code.

What is the current behavior?

Obsolete classes marked as obsolete, but still exist in code.

What is the new behavior?

Some classes/methods marked as obsolete are now removed from code.

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tested code with current supported SDKs
  • Pull Request has been submitted to the documentation repository instructions. Link:
  • Sample in sample app has been added / updated (for bug fixes / features)
  • Tests for the changes have been added (for bug fixes / features) (if applicable)
  • Header has been added to all new source files (run build/UpdateHeaders.bat)
  • Contains NO breaking changes

This PR IS a breaking change, as instead of just providing a warning, any developers that uses the dead code will now get missing method/class exceptions.

…onExtensions.Light, and some other smaller methods marked as Obsolete.
@ghost
Copy link

ghost commented Aug 17, 2020

Thanks azchohfi for opening a Pull Request! The reviewers will test the PR and highlight if there is any conflict or changes required. If the PR is approved we will proceed to merge the pull request 🙌

@ghost ghost requested a review from Kyaa-dost August 17, 2020 16:15
@michael-hawker
Copy link
Member

@michael-hawker michael-hawker added this to the 7.0 milestone Aug 17, 2020
@azchohfi azchohfi changed the title Removed Deprecated for 7.0 - Part1 Removed Deprecated for 7.0 Aug 17, 2020
@azchohfi
Copy link
Contributor Author

Ok, I've updated the initial message with everything that got deleted.

@michael-hawker
Copy link
Member

Should we do #3396 here too or leave that as a separate PR?

@azchohfi
Copy link
Contributor Author

I can do that on a different PR.

@azchohfi
Copy link
Contributor Author

Or here...

Copy link
Member

@michael-hawker michael-hawker left a comment

Choose a reason for hiding this comment

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

We should open a docs PR for this as well, which moves the docs to the 'obsolete' section?

@Sergio0694 we should also have a migration guide for folks for NotifyTaskCompletion to the new MVVM pattern. Think you said you'd add that to the samples/docs repo somewhere?

…/AnimationExtensions.Light, and some other smaller methods marked as Obsolete."

This reverts commit 274492b.
@michael-hawker michael-hawker added the for-review 📖 To evaluate and validate the Issues or PR label Sep 1, 2020
@@ -35,12 +35,11 @@ Once you do a search, you should see a list similar to the one below (versions m
| --- | --- |
| Microsoft.Toolkit | .NET Standard NuGet package containing common code |
| Microsoft.Toolkit.HighPerformance | .NET Standard and .NET Core NuGet package with performance oriented helpers, extensions, etc. |
| Microsoft.Toolkit.Parsers | .NET Standard NuGet package containing cross-platform parsers, such as Markdown and RSS |
| Microsoft.Toolkit.Services | .NET Standard NuGet package containing cross-platform services |
| Microsoft.Toolkit.Parsers | .NET Standard NuGet package containing cross-platform parsers, such as Markdown |
Copy link
Member

Choose a reason for hiding this comment

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

I know we haven't gotten there yet, but should we mark the current Markdown parser as Obsolete at least now?

If we don't migrate the UI component soon, we could internalize all of this code just for the control usage... right?

Copy link
Contributor

@Rosuavio Rosuavio left a comment

Choose a reason for hiding this comment

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

Not sure how to use github to suggest a change on a untouched file.
Should we remove mention of Facebook from the description of the Microsoft.Toolkit.Services project, as the FaceBook service has been removed?

@michael-hawker
Copy link
Member

Good catch @RosarioPulella, yeah, unfortunately GitHub doesn't allow us to comment on things outside the change (would be nice!). For now, since this is a branch we own in the repo, you can just make the change yourself on the branch and push a commit. Otherwise, you could just ping the original submitter with the suggestion in your comment.

or any other in this solution.
Copy link
Contributor

@Rosuavio Rosuavio left a comment

Choose a reason for hiding this comment

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

No longer mentioned removed Facebook namespace. Looks good.

@ghost
Copy link

ghost commented Sep 11, 2020

Hello @RosarioPulella!

Because this pull request has the auto merge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@ghost ghost merged commit 1b08bd6 into master Sep 11, 2020
@ghost ghost deleted the removeObsolete7 branch September 11, 2020 21:18
ghost pushed a commit that referenced this pull request Oct 27, 2020
## Part of #3062, related to #3435 
<!-- Add the relevant issue number after the "#" mentioned above (for ex: Fixes #1234) which will automatically close the issue once the PR is merged. -->

<!-- Add a brief overview here of the feature/bug & fix. -->

## PR Type
What kind of change does this PR introduce?
<!-- Please uncomment one or more that apply to this PR. -->

- Optimization
- Deprecation
<!-- - Bugfix -->
<!-- - Feature -->
<!-- - Code style update (formatting) -->
<!-- - Refactoring (no functional changes, no api changes) -->
<!-- - Build or CI related changes -->
<!-- - Documentation content changes -->
<!-- - Sample app changes -->
<!-- - Other... Please describe: -->


## What is the current behavior?
<!-- Please describe the current behavior that you are modifying, or link to a relevant issue. -->
The `Microsoft.Toolkit` package has a number of extensions for 2D arrays that are inefficient (they're both a bit slow and causing unnecessary memory allocations) and replaced by equivalent APIs in the `Microsoft.Toolkit.HighPerformance` package.

https://github.com/windows-toolkit/WindowsCommunityToolkit/blob/30452cf0bbf627f12825cf50bbd31b0e526b9abe/Microsoft.Toolkit/Extensions/ArrayExtensions.cs#L27

https://github.com/windows-toolkit/WindowsCommunityToolkit/blob/30452cf0bbf627f12825cf50bbd31b0e526b9abe/Microsoft.Toolkit/Extensions/ArrayExtensions.cs#L48

https://github.com/windows-toolkit/WindowsCommunityToolkit/blob/30452cf0bbf627f12825cf50bbd31b0e526b9abe/Microsoft.Toolkit/Extensions/ArrayExtensions.cs#L68

## What is the new behavior?
<!-- Describe how was this issue resolved or changed? -->
This PR makes these APIs obsolete, and also includes a number of small optimizations to existing code that was added during the refactoring to remove dependencies on these APIs, so that it'll be possible to remove them in the future with no issues.

## PR Checklist

Please check if your PR fulfills the following requirements:

- [X] Tested code with current [supported SDKs](../readme.md#supported)
- [ ] Pull Request has been submitted to the documentation repository [instructions](..\contributing.md#docs). Link: <!-- docs PR link -->
- [ ] ~~Sample in sample app has been added / updated (for bug fixes / features)~~
    - [ ] ~~Icon has been created (if new sample) following the [Thumbnail Style Guide and templates](https://github.com/windows-toolkit/WindowsCommunityToolkit-design-assets)~~
- [X] Tests for the changes have been added (for bug fixes / features) (if applicable)
- [X] Header has been added to all new source files (run *build/UpdateHeaders.bat*)
- [X] Contains **NO** breaking changes
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove Toolkit Platform Analyzers
3 participants