1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 23:11:16 +02:00

nix-rust: remove unused tar file code

This commit is contained in:
Yorick van Pelt 2019-12-09 17:28:15 +07:00
parent eba82b7c88
commit b232eea40a
No known key found for this signature in database
GPG key ID: A36E70F9DC014A15
4 changed files with 3 additions and 126 deletions

View file

@ -1,6 +1,5 @@
mod error;
mod foreign;
mod tarfile;
pub use error::Error;
@ -23,10 +22,3 @@ impl<T> CBox<T> {
}
}
#[no_mangle]
pub extern "C" fn unpack_tarfile(
source: foreign::Source,
dest_dir: &str,
) -> CBox<Result<(), error::CppException>> {
CBox::new(tarfile::unpack_tarfile(source, dest_dir).map_err(|err| err.into()))
}