Skip to content
Snippets Groups Projects
Commit 392a1b66 authored by Owen Winkler's avatar Owen Winkler Committed by Thomas Müller
Browse files

Removed unused vars/declarations, update PHPDoc.

parent 826b14e3
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,6 @@ ...@@ -10,7 +10,6 @@
namespace OC\Files\Storage\Wrapper; namespace OC\Files\Storage\Wrapper;
use OC\Files\Filesystem; use OC\Files\Filesystem;
use OCP\Files\LockNotAcquiredException;
use OCP\Files\Lock; use OCP\Files\Lock;
/** /**
...@@ -46,6 +45,8 @@ class LockingWrapper extends Wrapper { ...@@ -46,6 +45,8 @@ class LockingWrapper extends Wrapper {
/** /**
* Release an existing lock * Release an existing lock
* @param string $path Path to file, relative to this storage * @param string $path Path to file, relative to this storage
* @param integer $lockType The type of lock to release
* @param bool $releaseAll If true, release all outstanding locks
* @return bool true on success, false on failure * @return bool true on success, false on failure
*/ */
protected function releaseLock($path, $lockType, $releaseAll = false){ protected function releaseLock($path, $lockType, $releaseAll = false){
......
...@@ -140,10 +140,9 @@ class Lock { ...@@ -140,10 +140,9 @@ class Lock {
* Sets $this->lockFile to the specified lock file, indicating that the lock file is IN USE for this lock instance * Sets $this->lockFile to the specified lock file, indicating that the lock file is IN USE for this lock instance
* Also sets $this->lockFileHandle to a file handle of the lock file * Also sets $this->lockFileHandle to a file handle of the lock file
* @param string $filename The name of the file to lock * @param string $filename The name of the file to lock
* @param int $timeout Milliseconds to wait for a valid lock
* @return bool False if lock can't be acquired, true if it can. * @return bool False if lock can't be acquired, true if it can.
*/ */
protected function lockLockFile ( $filename, $timeout = 0 ) { protected function lockLockFile ( $filename ) {
$lockFile = $this->getLockFile($filename); $lockFile = $this->getLockFile($filename);
\OC_Log::write('lock', sprintf('INFO: Locking lock file %s for %s', $lockFile, $filename), \OC_Log::DEBUG); \OC_Log::write('lock', sprintf('INFO: Locking lock file %s for %s', $lockFile, $filename), \OC_Log::DEBUG);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment