refactor: remove unused methods

This commit is contained in:
dignifiedquire
2019-08-16 11:25:02 +02:00
parent 13d8306a7b
commit 4645a4300e
2 changed files with 5 additions and 50 deletions

View File

@@ -167,11 +167,6 @@ pub unsafe fn dc_trim(buf: *mut libc::c_char) {
dc_rtrim(buf);
}
/* the result must be free()'d */
unsafe fn dc_strlower(in_0: *const libc::c_char) -> *mut libc::c_char {
to_string(in_0).to_lowercase().strdup()
}
pub unsafe fn dc_strlower_in_place(in_0: *mut libc::c_char) {
let raw = CString::yolo(to_string(in_0).to_lowercase());
assert_eq!(strlen(in_0), strlen(raw.as_ptr()));