memorylocker: Remove deprecated constructor for MemoryLocker

This commit is contained in:
Marius 2019-06-11 18:32:00 +02:00
parent 42bfe35457
commit 0f70b98b0f
1 changed files with 0 additions and 7 deletions

View File

@ -24,13 +24,6 @@ type MemoryLocker struct {
mutex sync.Mutex mutex sync.Mutex
} }
// NewMemoryLocker creates a new in-memory locker. The DataStore parameter
// is only presented for back-wards compatibility and is ignored. Please
// use the New() function instead.
func NewMemoryLocker(_ handler.DataStore) *MemoryLocker {
return New()
}
// New creates a new in-memory locker. // New creates a new in-memory locker.
func New() *MemoryLocker { func New() *MemoryLocker {
return &MemoryLocker{ return &MemoryLocker{