Skip to content

Commit

Permalink
remove unused local var in unity
Browse files Browse the repository at this point in the history
  • Loading branch information
neuecc committed Jul 31, 2024
1 parent e842938 commit 81546b4
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/Ulid.Unity/Assets/Scripts/Ulid/Ulid.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,6 @@ internal Ulid(long timestampMilliseconds, XorShift64 random)
unsafe
{
ref var firstByte = ref Unsafe.AsRef<byte>(Unsafe.AsPointer(ref timestampMilliseconds));


ref var firstByteOriginal = ref Unsafe.As<long, byte>(ref timestampMilliseconds);

if (BitConverter.IsLittleEndian)
{
// Get memory in stack and copy to ulid(Little->Big reverse order).
Expand Down

0 comments on commit 81546b4

Please sign in to comment.