mirror of
https://github.com/nextcloud/server.git
synced 2026-02-18 18:28:50 -05:00
refactor(Files): Remove deprecated and unused getMimeType and searchByMime methods
Signed-off-by: provokateurin <kate@provokateurin.de>
This commit is contained in:
parent
5f4a5d8c67
commit
672a29aa0c
1 changed files with 0 additions and 25 deletions
|
|
@ -10,8 +10,6 @@
|
|||
|
||||
namespace OCP;
|
||||
|
||||
use OCP\Files\IMimeTypeDetector;
|
||||
|
||||
/**
|
||||
* This class provides access to the internal filesystem abstraction layer. Use
|
||||
* this class exclusively if you want to access files
|
||||
|
|
@ -60,27 +58,4 @@ class Files {
|
|||
|
||||
return !file_exists($dir);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the mimetype form a local file
|
||||
* @param string $path
|
||||
* @return string
|
||||
* does NOT work for ownClouds filesystem, use OC_FileSystem::getMimeType instead
|
||||
* @since 5.0.0
|
||||
* @deprecated 14.0.0
|
||||
*/
|
||||
public static function getMimeType($path) {
|
||||
return Server::get(IMimeTypeDetector::class)->detect($path);
|
||||
}
|
||||
|
||||
/**
|
||||
* Search for files by mimetype
|
||||
* @param string $mimetype
|
||||
* @return array
|
||||
* @since 6.0.0
|
||||
* @deprecated 14.0.0
|
||||
*/
|
||||
public static function searchByMime($mimetype) {
|
||||
return \OC\Files\Filesystem::searchByMime($mimetype);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue