Remove release_memory feature

Because `sqlite3_db_release_memory` is available in 3.14.0 (min version
supported by rusqlite)
And:
<http://sqlite.org/c3ref/db_release_memory.html>
> Unlike the sqlite3_release_memory() interface, this interface is in effect even when the SQLITE_ENABLE_MEMORY_MANAGEMENT compile-time option is omitted.
This commit is contained in:
gwenn
2024-12-07 11:57:44 +01:00
parent de7cd7c7d2
commit 9e09a8b9e8
3 changed files with 0 additions and 4 deletions

View File

@@ -382,7 +382,6 @@ impl InnerConnection {
}
#[inline]
#[cfg(feature = "release_memory")]
pub fn release_memory(&self) -> Result<()> {
self.decode_result(unsafe { ffi::sqlite3_db_release_memory(self.db) })
}

View File

@@ -652,7 +652,6 @@ impl Connection {
///
/// This calls [`sqlite3_db_release_memory`](https://www.sqlite.org/c3ref/db_release_memory.html).
#[inline]
#[cfg(feature = "release_memory")]
pub fn release_memory(&self) -> Result<()> {
self.db.borrow_mut().release_memory()
}