Skip to content

Commit e692059

Browse files
committed
Slight optimization/simplication
1 parent 609cd21 commit e692059

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

.silktouch/159d518e3b94efca.stout

0 Bytes
Binary file not shown.

sources/SilkTouch/SilkTouch/Mods/MixKhronosData.cs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1467,10 +1467,9 @@ container is not null
14671467
// Trim _T from _THandle names
14681468
foreach (var (original, (current, previous)) in names)
14691469
{
1470-
if (current.Contains("_THandle"))
1470+
var newPrim = current.Replace("_THandle", "_Handle");
1471+
if (current != newPrim)
14711472
{
1472-
var newPrim = current.Replace("_THandle", "_Handle");
1473-
14741473
var newPrev = previous ?? [];
14751474
newPrev.Add(current);
14761475

@@ -1483,10 +1482,9 @@ container is not null
14831482
{
14841483
foreach (var (original, (current, previous)) in names)
14851484
{
1486-
if (current.Contains("FlagBits"))
1485+
var newPrim = current.Replace("FlagBits", "Flags");
1486+
if (current != newPrim)
14871487
{
1488-
var newPrim = current.Replace("FlagBits", "Flags");
1489-
14901488
var newPrev = previous ?? [];
14911489
newPrev.Add(current);
14921490

0 commit comments

Comments
 (0)