remove unused method
This commit is contained in:
parent
9318606faf
commit
0b8296a756
|
@ -401,18 +401,6 @@ class OC_Helper {
|
|||
return \OC::$server->getMimeTypeDetector()->detectPath($path);
|
||||
}
|
||||
|
||||
/**
|
||||
* get the mimetype form a local file
|
||||
*
|
||||
* @param string $path
|
||||
* @return string
|
||||
* does NOT work for ownClouds filesystem, use OC_FileSystem::getMimeType instead
|
||||
* @deprecated 8.2.0 Use \OC::$server->getMimeTypeDetector()->detect($path)
|
||||
*/
|
||||
static function getMimeType($path) {
|
||||
return \OC::$server->getMimeTypeDetector()->detect($path);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a secure mimetype that won't expose potential XSS.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue