chore: cleanup stale codes

This commit is contained in:
LongYinan 2021-12-07 21:45:40 +08:00
parent 11a5a35485
commit f7a101db01
No known key found for this signature in database
GPG key ID: C3666B7FC82ADAD7
2 changed files with 0 additions and 2 deletions

View file

@ -145,7 +145,6 @@ static KNOWN_TYPES: Lazy<HashMap<&'static str, &'static str>> = Lazy::new(|| {
("Date", "Date"), ("Date", "Date"),
("JsBuffer", "Buffer"), ("JsBuffer", "Buffer"),
("Buffer", "Buffer"), ("Buffer", "Buffer"),
// TODO: Vec<u8> should be Buffer, now is Array<number>
("Vec", "Array<{}>"), ("Vec", "Array<{}>"),
("Result", "Error | {}"), ("Result", "Error | {}"),
("Either", "{} | {}"), ("Either", "{} | {}"),

View file

@ -230,7 +230,6 @@ pub mod latin1_string {
} }
} }
#[cfg(feature = "latin1")]
impl FromNapiValue for Latin1String { impl FromNapiValue for Latin1String {
unsafe fn from_napi_value(env: sys::napi_env, napi_val: sys::napi_value) -> Result<Self> { unsafe fn from_napi_value(env: sys::napi_env, napi_val: sys::napi_value) -> Result<Self> {
let mut len = 0; let mut len = 0;