refactor(Files): Remove deprecated and unused getMimeType and searchByMime methods

Signed-off-by: provokateurin <kate@provokateurin.de>
pull/58286/head
provokateurin 6 months ago
parent 5f4a5d8c67
commit 672a29aa0c
No known key found for this signature in database
  1. 25
      lib/public/Files.php

@ -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…
Cancel
Save