From 90f5e0103eb311218d593ec560c251bf7d919923 Mon Sep 17 00:00:00 2001 From: Richard Dodd Date: Tue, 25 Jul 2017 12:44:50 +0100 Subject: [PATCH] Remove unnecessary function --- src/db_options.rs | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/src/db_options.rs b/src/db_options.rs index 11a0b1a..2b180c4 100644 --- a/src/db_options.rs +++ b/src/db_options.rs @@ -375,33 +375,6 @@ impl Options { } } - /// Enable direct I/O mode for writing - /// they may or may not improve performance depending on the use case - /// - /// Files will be opened in "direct I/O" mode - /// which means that data written to the disk will not be cached or - /// buffered. The hardware buffer of the devices may however still - /// be used. Memory mapped files are not impacted by these parameters. - /// - /// Default: false - /// - /// # Example - /// - /// ``` - /// #[allow(deprecated)] - /// use rocksdb::Options; - /// - /// let mut opts = Options::default(); - /// opts.set_use_direct_writes(true); - /// ``` - #[deprecated(note = "replaced by `Options::set_use_direct_io_for_flush_and_compaction`")] - pub fn set_use_direct_writes(&mut self, enabled: bool) { - unsafe { - ffi::rocksdb_options_set_use_direct_io_for_flush_and_compaction(self.inner, - enabled as c_uchar); - } - } - /// Enable direct I/O mode for writing /// they may or may not improve performance depending on the use case ///