summaryrefslogtreecommitdiffstats
path: root/lib/sync/sync.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sync/sync.go')
-rw-r--r--lib/sync/sync.go8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/sync/sync.go b/lib/sync/sync.go
index 9d76613843..a3ea396de6 100644
--- a/lib/sync/sync.go
+++ b/lib/sync/sync.go
@@ -15,8 +15,6 @@ import (
"sync"
"sync/atomic"
"time"
-
- "github.com/sasha-s/go-deadlock"
)
var timeNow = time.Now
@@ -39,9 +37,6 @@ type WaitGroup interface {
}
func NewMutex() Mutex {
- if useDeadlock {
- return &deadlock.Mutex{}
- }
if debug {
mutex := &loggedMutex{}
mutex.holder.Store(holder{})
@@ -51,9 +46,6 @@ func NewMutex() Mutex {
}
func NewRWMutex() RWMutex {
- if useDeadlock {
- return &deadlock.RWMutex{}
- }
if debug {
mutex := &loggedRWMutex{
readHolders: make(map[int][]holder),