Skip to content

Commit 5c46eb3

Browse files
committed
Remove an unused unsafe function
1 parent d5323a3 commit 5c46eb3

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

‎src/macros.rs‎

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,6 @@ macro_rules! mk_impl_lang {
5858
( $( ($camel:ident, $name:ident, $display: expr) ),* ) => {
5959
impl LANG {
6060

61-
#[allow(dead_code)]
62-
pub(crate) fn get_language(&self) -> Language {
63-
unsafe {
64-
match self {
65-
$(
66-
LANG::$camel => $name(),
67-
)*
68-
}
69-
}
70-
}
71-
7261
/// Returns the name of a language as a `&str`.
7362
///
7463
/// # Examples

0 commit comments

Comments
 (0)