]> git.e2factory.org Git - e2factory.git/commitdiff
remove disabled lock test code
authorTobias Ulmer <tu@emlix.com>
Tue, 9 Sep 2014 11:53:57 +0000 (13:53 +0200)
committerTobias Ulmer <tu@emlix.com>
Wed, 16 Nov 2016 14:41:18 +0000 (15:41 +0100)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
generic/lock.lua

index 290b748235262acfc844d0c4261b8440982d1fd7..05345727fc39d7a5ae78baad3e83ce41207ee0e6 100644 (file)
@@ -98,33 +98,6 @@ function lock.cleanup(l)
     end
 end
 
---[[
-local test=false
-if test then
-    -- some dummy functions to test without context...
-    function err.new(x)
-        return true
-    end
-    e2lib = {}
-    e2lib.mkdir = function(x)
-        print("mkdir " .. x)
-        return true
-    end
-    e2lib.rmdir = function(x)
-        print("rmdir " .. x)
-        return true
-    end
-
-    l = new()
-
-    l:lock("/tmp/foo1")
-    l:lock("/tmp/foo2")
-    l:lock("/tmp/foo3")
-    l:unlock("/tmp/foo2")
-    l:cleanup()
-end
-]]
-
 return strict.lock(lock)
 
 -- vim:sw=4:sts=4:et: