diff --git a/runtime/src/accounts_file.rs b/runtime/src/accounts_file.rs index d2a37f341..6e3ffd3df 100644 --- a/runtime/src/accounts_file.rs +++ b/runtime/src/accounts_file.rs @@ -58,15 +58,6 @@ impl AccountsFile { Ok((Self::AppendVec(av), num_accounts)) } - /// By default, all AccountsFile will remove its underlying file on - /// drop. Calling this function to disable such behavior for this - /// instance. - pub fn set_no_remove_on_drop(&mut self) { - match self { - Self::AppendVec(av) => av.set_no_remove_on_drop(), - } - } - pub fn flush(&self) -> Result<()> { match self { Self::AppendVec(av) => av.flush(), diff --git a/runtime/src/append_vec.rs b/runtime/src/append_vec.rs index 4a37a782b..ab098b4b3 100644 --- a/runtime/src/append_vec.rs +++ b/runtime/src/append_vec.rs @@ -292,10 +292,6 @@ impl AppendVec { } } - pub fn set_no_remove_on_drop(&mut self) { - // noop: will be removed next - } - fn sanitize_len_and_size(current_len: usize, file_size: usize) -> Result<()> { if file_size == 0 { Err(AccountsFileError::AppendVecError(