aboutsummaryrefslogtreecommitdiffstats
path: root/misc.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--misc.go7
1 files changed, 0 insertions, 7 deletions
diff --git a/misc.go b/misc.go
index aeda813..af61718 100644
--- a/misc.go
+++ b/misc.go
@@ -41,13 +41,6 @@ func (a *AtomicBool) Set(val bool) {
atomic.StoreInt32(&a.flag, flag)
}
-/* Integer manipulation */
-
-func toInt32(n uint32) int32 {
- mask := uint32(1 << 31)
- return int32(-(n & mask) + (n & ^mask))
-}
-
func min(a, b uint) uint {
if a > b {
return b