mirror of
https://github.com/mimblewimble/grin.git
synced 2025-02-01 17:01:09 +03:00
cleanup
This commit is contained in:
parent
0010a9227e
commit
f820b3675d
1 changed files with 0 additions and 11 deletions
|
@ -250,17 +250,6 @@ impl AppendOnlyFile {
|
|||
}
|
||||
}
|
||||
|
||||
// /// Truncates the underlying file to the provided offset
|
||||
// pub fn truncate(&self, offs: usize) -> io::Result<()> {
|
||||
// let fd = self.file.as_raw_fd();
|
||||
// let res = unsafe { ftruncate64(fd, offs as off64_t) };
|
||||
// if res == -1 {
|
||||
// Err(io::Error::last_os_error())
|
||||
// } else {
|
||||
// Ok(())
|
||||
// }
|
||||
// }
|
||||
|
||||
/// Saves a copy of the current file content, skipping data at the provided
|
||||
/// prune indices. The prune Vec must be ordered.
|
||||
pub fn save_prune<T>(
|
||||
|
|
Loading…
Reference in a new issue