From 259643cd8eef19ee961022e86587f33affd7e767 Mon Sep 17 00:00:00 2001 From: Christian Treffs Date: Thu, 9 Jul 2020 22:23:12 +0200 Subject: [PATCH] Cleanups --- Sources/FirebladeECS/Hashing.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Sources/FirebladeECS/Hashing.swift b/Sources/FirebladeECS/Hashing.swift index 6a4f100..9c2ed41 100644 --- a/Sources/FirebladeECS/Hashing.swift +++ b/Sources/FirebladeECS/Hashing.swift @@ -85,7 +85,7 @@ extension EntityComponentHash { } // MARK: - string hashing -/// https://stackoverflow.com/a/52440609 +/// public enum StringHashing { /// *Waren Singer djb2* /// @@ -111,7 +111,6 @@ public enum StringHashing { var iter = string.unicodeScalars.makeIterator() while let char = iter.next() { hash = (hash << 5) &+ hash &+ UInt(char.value) - //hash = ((hash << 5) + hash) + UInt(c.value) } return hash }