From f820b3675dbfb8bab00f237e50065e274939e7e9 Mon Sep 17 00:00:00 2001 From: antiochp <30642645+antiochp@users.noreply.github.com> Date: Mon, 12 Nov 2018 13:59:22 +0000 Subject: [PATCH] cleanup --- store/src/types.rs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/store/src/types.rs b/store/src/types.rs index e1a3bcb99..442e52709 100644 --- a/store/src/types.rs +++ b/store/src/types.rs @@ -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(