Skip to content

Commit

Permalink
🔥 Remove IsMutexLocked func
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Dec 8, 2023
1 parent bcc43ee commit dafc64f
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions gulu.go
Expand Up @@ -13,8 +13,6 @@ package gulu

import (
"os"
"reflect"
"sync"
)

// Logger is the logger used in Gulu internally.
Expand Down Expand Up @@ -73,8 +71,3 @@ var (
// JSON utilities
JSON GuluJSON
)

func IsMutexLocked(m *sync.Mutex) bool {
state := reflect.ValueOf(m).Elem().FieldByName("state")
return state.Int()&1 == 1
}

0 comments on commit dafc64f

Please sign in to comment.