Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(297)

Unified Diff: base/nix/mime_util_xdg.cc

Issue 2369933003: Remove dead code, GetDataMimeType (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/nix/mime_util_xdg.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/nix/mime_util_xdg.cc
diff --git a/base/nix/mime_util_xdg.cc b/base/nix/mime_util_xdg.cc
index f78b6aba558e4209c30354df4cb6458aac79b814..f6e755eede3f1771322eb4c28cf3283e374e6751 100644
--- a/base/nix/mime_util_xdg.cc
+++ b/base/nix/mime_util_xdg.cc
@@ -29,11 +29,5 @@ std::string GetFileMimeType(const FilePath& filepath) {
return xdg_mime_get_mime_type_from_file_name(filepath.value().c_str());
}
-std::string GetDataMimeType(const std::string& data) {
- ThreadRestrictions::AssertIOAllowed();
- AutoLock scoped_lock(g_mime_util_xdg_lock.Get());
- return xdg_mime_get_mime_type_for_data(data.data(), data.length(), NULL);
-}
-
} // namespace nix
} // namespace base
« no previous file with comments | « base/nix/mime_util_xdg.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698