From 3d8881c6f2083e4a4684e91c6f852d33600bd7f7 Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Sun, 25 Oct 2015 11:53:52 -0400 Subject: [PATCH] Remove unneeded dead_code annotations. --- components/net/mime_classifier.rs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/components/net/mime_classifier.rs b/components/net/mime_classifier.rs index 6313d56a596..fe844f82212 100644 --- a/components/net/mime_classifier.rs +++ b/components/net/mime_classifier.rs @@ -950,8 +950,6 @@ impl ByteMatcher { } } //34 bytes followed by the string "LP", the Embedded OpenType signature. - // TODO: Use this in font context classifier - #[allow(dead_code)] fn application_vnd_ms_font_object() -> ByteMatcher { ByteMatcher { pattern: b"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\ @@ -965,8 +963,6 @@ impl ByteMatcher { } } //4 bytes representing the version number 1.0, a TrueType signature. - // TODO: Use this in font context classifier - #[allow(dead_code)] fn true_type() -> ByteMatcher { ByteMatcher { pattern: b"\x00\x01\x00\x00", @@ -976,8 +972,6 @@ impl ByteMatcher { } } //The string "OTTO", the OpenType signature. - // TODO: Use this in font context classifier - #[allow(dead_code)] fn open_type() -> ByteMatcher { ByteMatcher { pattern: b"OTTO", @@ -987,8 +981,6 @@ impl ByteMatcher { } } // The string "ttcf", the TrueType Collection signature. - // TODO: Use this in font context classifier - #[allow(dead_code)] fn true_type_collection() -> ByteMatcher { ByteMatcher { pattern: b"ttcf", @@ -998,8 +990,6 @@ impl ByteMatcher { } } // The string "wOFF", the Web Open Font Format signature. - // TODO: Use this in font context classifier - #[allow(dead_code)] fn application_font_woff() -> ByteMatcher { ByteMatcher { pattern: b"wOFF",