Skip to content

Commit

Permalink
Remove abandoned functions
Browse files Browse the repository at this point in the history
  • Loading branch information
reknih committed Oct 2, 2024
1 parent e3fd3f0 commit f069f9c
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3018,20 +3018,6 @@ impl Locale {
})
})
}

/// Create a locale from a CBOR file.
#[cfg(feature = "ciborium")]
pub fn from_cbor(reader: &[u8]) -> Result<Self, CborDeserializeError> {
ciborium::de::from_reader(reader)
}

/// Write the locale to a CBOR file.
#[cfg(feature = "ciborium")]
pub fn to_cbor(&self) -> Result<Vec<u8>, CborSerializeError> {
let mut buf = Vec::new();
ciborium::ser::into_writer(self, &mut buf)?;
Ok(buf)
}
}

/// Get the right forms of ordinal terms for numbers.
Expand Down

0 comments on commit f069f9c

Please sign in to comment.