-
-
Notifications
You must be signed in to change notification settings - Fork 886
Remove obsolete code #2189
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
Merged
Remove obsolete code #2189
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
eee64f2
Remove SUPPORTS conditions
JimBobSquarePants 6fc84a8
Remove other obsolete conditions and warnings
JimBobSquarePants ca0b284
Remove obsolete OSX transform methods
JimBobSquarePants 3fb4787
Normalize some reference swapping
JimBobSquarePants 3c40500
Clean up pixel blender defaults
JimBobSquarePants 3d837b1
Update PixelBlender{TPixel}.cs
JimBobSquarePants 606e64a
Merge branch 'main' into js/remove-obsolete-code
JimBobSquarePants 89faddf
Fix build
JimBobSquarePants 61299f9
PR feedback
JimBobSquarePants 65a2ea3
Merge branch 'main' into js/remove-obsolete-code
JimBobSquarePants ba1adc3
Use BitOperations directly.
dlemstra 3031400
Did not push all files....
dlemstra f9c9a01
Removed unused argument.
dlemstra 1c5a78c
Removed unit tests.
dlemstra 3a6f26d
Removed unused class.
dlemstra b22785e
Update editorconfig and fix all new warnings.
JimBobSquarePants ac84e49
Fix CA1854 for NET 7
JimBobSquarePants 90c85c0
Cleanup and remove unused index
JimBobSquarePants 0e46510
Use culture for NET 7
JimBobSquarePants e25734a
Reverse unsealing
JimBobSquarePants 9b29319
Reverse breaking change.
JimBobSquarePants 145dc9e
Merge branch 'main' into js/remove-obsolete-code
JimBobSquarePants e9049e2
Throw for unsupported App0 markers.
JimBobSquarePants File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| // Copyright (c) Six Labors. | ||
| // Licensed under the Six Labors Split License. | ||
|
|
||
| using System; | ||
| using System.Runtime.CompilerServices; | ||
|
|
||
| namespace SixLabors.ImageSharp.Common.Helpers | ||
| { | ||
| /// <summary> | ||
| /// A helper class that with utility methods for dealing with references, and other low-level details. | ||
| /// </summary> | ||
| internal static class RuntimeUtility | ||
| { | ||
| /// <summary> | ||
| /// Swaps the two references. | ||
| /// </summary> | ||
| /// <typeparam name="T">The type to swap.</typeparam> | ||
| /// <param name="a">The first item.</param> | ||
| /// <param name="b">The second item.</param> | ||
| [MethodImpl(MethodImplOptions.AggressiveInlining)] | ||
| public static void Swap<T>(ref T a, ref T b) | ||
| { | ||
| // Tuple swap uses 2 more IL bytes | ||
| #pragma warning disable IDE0180 // Use tuple to swap values | ||
| T tmp = a; | ||
| #pragma warning restore IDE0180 // Use tuple to swap values | ||
| a = b; | ||
| b = tmp; | ||
| } | ||
|
|
||
| /// <summary> | ||
| /// Swaps the two references. | ||
| /// </summary> | ||
| /// <typeparam name="T">The type to swap.</typeparam> | ||
| /// <param name="a">The first item.</param> | ||
| /// <param name="b">The second item.</param> | ||
| [MethodImpl(MethodImplOptions.AggressiveInlining)] | ||
| public static void Swap<T>(ref Span<T> a, ref Span<T> b) | ||
| { | ||
| // Tuple swap uses 2 more IL bytes | ||
| #pragma warning disable IDE0180 // Use tuple to swap values | ||
| Span<T> tmp = a; | ||
| #pragma warning restore IDE0180 // Use tuple to swap values | ||
| a = b; | ||
| b = tmp; | ||
| } | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.