Skip to content

Commit

Permalink
Remove an unused unsafe function (mozilla#427)
Browse files Browse the repository at this point in the history
  • Loading branch information
Luni-4 authored and spacedragon committed Feb 2, 2021
1 parent 28d419c commit 19e394d
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/macros.rs
Expand Up @@ -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
Expand Down

0 comments on commit 19e394d

Please sign in to comment.