From 5c46eb36cdcfb46c671db837122c841c474c2126 Mon Sep 17 00:00:00 2001 From: Luni-4 Date: Wed, 13 Jan 2021 15:37:59 +0100 Subject: [PATCH] Remove an unused unsafe function --- src/macros.rs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/macros.rs b/src/macros.rs index a8b1702a8..fb2d50d9e 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -58,17 +58,6 @@ macro_rules! mk_impl_lang { ( $( ($camel:ident, $name:ident, $display: expr) ),* ) => { impl LANG { - #[allow(dead_code)] - pub(crate) fn get_language(&self) -> Language { - unsafe { - match self { - $( - LANG::$camel => $name(), - )* - } - } - } - /// Returns the name of a language as a `&str`. /// /// # Examples