[gnome-boxes] Revert "util: Add is_mime_type()"
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] Revert "util: Add is_mime_type()"
- Date: Sat, 21 Dec 2013 14:21:14 +0000 (UTC)
commit bcd15ef94837b58705bfad0c6ac07e0aaef6d81a
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Sat Dec 21 14:18:47 2013 +0000
Revert "util: Add is_mime_type()"
This reverts commit a9e6af5fa88c3748bbf748f68450eea95dd2b3b8.
We don't need this utility function anymore.
https://bugzilla.gnome.org/show_bug.cgi?id=720801
src/util-app.vala | 7 -------
1 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/src/util-app.vala b/src/util-app.vala
index 1be7111..a4fca09 100644
--- a/src/util-app.vala
+++ b/src/util-app.vala
@@ -637,13 +637,6 @@ namespace Boxes {
return tokens[1];
}
- public bool is_mime_type (string filename, string mime_type) {
- var file_type = ContentType.guess (filename, null, null);
- var supertype = ContentType.from_mime_type (mime_type);
-
- return ContentType.is_a (file_type, supertype);
- }
-
namespace UUID {
[CCode (cname = "uuid_generate", cheader_filename = "uuid/uuid.h")]
internal extern static void generate ([CCode (array_length = false)] uchar[] uuid);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]