Commit de528f18 authored by vyzo's avatar vyzo

nuke incref, it's useless

parent 59006419
......@@ -43,10 +43,6 @@ type activeDial struct {
ds *DialSync
}
func (ad *activeDial) incref() {
ad.refCnt++
}
func (ad *activeDial) decref() {
ad.ds.dialsLk.Lock()
ad.refCnt--
......@@ -107,7 +103,7 @@ func (ds *DialSync) getActiveDial(p peer.ID) *activeDial {
}
// increase ref count before dropping dialsLk
actd.incref()
actd.refCnt++
return actd
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment