Skip to content

Commit

Permalink
lose IsExclusively
Browse files Browse the repository at this point in the history
  • Loading branch information
clipperhouse committed Jul 17, 2024
1 parent 1b0a52a commit ecd22d9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 78 deletions.
63 changes: 0 additions & 63 deletions uax29/Splitter.Test.cs

This file was deleted.

15 changes: 0 additions & 15 deletions uax29/Splitter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,4 @@ internal static bool Is(this Property lookup, Property properties)
{
return (lookup & properties) != 0;
}

/// <summary>
/// Determines if property consists entirely of compare, i.e. no other values (flags) besides the ones in compare.
/// </summary>
/// <param name="property">The property to test; the haystack.</param>
/// <param name="compare">The property to test against; the needle.</param>
/// <returns>True if property consists entirely of compare, otherwise false.</returns>
internal static bool IsExclusively(this Property property, Property compare)
{
Debug.Assert(compare > 0);
return
(property & compare) != 0 && // compare appears in property
(property & ~compare) == 0 // but no others do
;
}
}

0 comments on commit ecd22d9

Please sign in to comment.