Skip to content

Commit

Permalink
Remove an unused unsafe function (#427)
Browse files Browse the repository at this point in the history
  • Loading branch information
Luni-4 committed Jan 15, 2021
1 parent ea2f004 commit b38ade9
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 b38ade9

Please sign in to comment.