🗑️ Elimina métodos y definiciones obsoletas
This commit is contained in:
parent
a2fe2114cd
commit
4ac7caddd4
7 changed files with 4 additions and 182 deletions
|
|
@ -1,4 +1,3 @@
|
|||
use crate::html::Markup;
|
||||
use crate::locale::{L10n, LangId};
|
||||
use crate::{builder_fn, AutoDefault};
|
||||
|
||||
|
|
@ -58,10 +57,4 @@ impl AttrL10n {
|
|||
pub fn value(&self, language: &impl LangId) -> String {
|
||||
self.0.lookup(language).unwrap_or_default()
|
||||
}
|
||||
|
||||
/// **Obsoleto desde la versión 0.4.0**: no recomendado para atributos HTML.
|
||||
#[deprecated(since = "0.4.0", note = "For attributes use `lookup()` or `value()`")]
|
||||
pub fn to_markup(&self, language: &impl LangId) -> Markup {
|
||||
self.0.using(language)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue