Remove old deprecated getAppFolder
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
b2959d7c86
commit
7d128ebf3e
|
@ -1567,23 +1567,6 @@ class Server extends ServerContainer implements IServerContainer {
|
|||
return $root->getUserFolder($userId);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns an app-specific view in ownClouds data directory
|
||||
*
|
||||
* @return \OCP\Files\Folder
|
||||
* @deprecated since 9.2.0 use IAppData
|
||||
*/
|
||||
public function getAppFolder() {
|
||||
$dir = '/' . \OC_App::getCurrentApp();
|
||||
$root = $this->getRootFolder();
|
||||
if (!$root->nodeExists($dir)) {
|
||||
$folder = $root->newFolder($dir);
|
||||
} else {
|
||||
$folder = $root->get($dir);
|
||||
}
|
||||
return $folder;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \OC\User\Manager
|
||||
*/
|
||||
|
|
|
@ -144,15 +144,6 @@ interface IServerContainer extends IContainer {
|
|||
*/
|
||||
public function getUserFolder($userId = null);
|
||||
|
||||
/**
|
||||
* Returns an app-specific view in ownClouds data directory
|
||||
*
|
||||
* @return \OCP\Files\Folder
|
||||
* @since 6.0.0
|
||||
* @deprecated 9.2.0 use IAppData
|
||||
*/
|
||||
public function getAppFolder();
|
||||
|
||||
/**
|
||||
* Returns a user manager
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue