mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
remove unused method
This commit is contained in:
parent
0cf2fa0904
commit
7c2393afb0
3 changed files with 1 additions and 23 deletions
|
|
@ -52,11 +52,6 @@ interface IShare {
|
||||||
*/
|
*/
|
||||||
public function put($source, $target);
|
public function put($source, $target);
|
||||||
|
|
||||||
/**
|
|
||||||
* @return Server
|
|
||||||
*/
|
|
||||||
public function getServer();
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* List the content of a remote folder
|
* List the content of a remote folder
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -73,11 +73,8 @@ class NativeShare implements IShare {
|
||||||
}
|
}
|
||||||
self::registerErrorHandler();
|
self::registerErrorHandler();
|
||||||
$this->state = smbclient_state_new();
|
$this->state = smbclient_state_new();
|
||||||
$result = smbclient_state_init($this->state, $workgroup, $user, $this->server->getPassword());
|
smbclient_state_init($this->state, $workgroup, $user, $this->server->getPassword());
|
||||||
self::restoreErrorHandler();
|
self::restoreErrorHandler();
|
||||||
if (!$result) {
|
|
||||||
throw new ConnectionError();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -319,11 +316,4 @@ class NativeShare implements IShare {
|
||||||
));
|
));
|
||||||
return fopen('nativesmb://dummy', 'w', false, $context);
|
return fopen('nativesmb://dummy', 'w', false, $context);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @return Server
|
|
||||||
*/
|
|
||||||
public function getServer() {
|
|
||||||
return $this->server;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -222,13 +222,6 @@ class Share implements IShare {
|
||||||
return $fh;
|
return $fh;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @return Server
|
|
||||||
*/
|
|
||||||
public function getServer() {
|
|
||||||
return $this->server;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $command
|
* @param string $command
|
||||||
* @return array
|
* @return array
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue