Skip to content

Commit c0ba4f5

Browse files
committed
Remove unused RelationalDB::table_exist
This was identical to table_id_by_name anyway, and nothing uses this.
1 parent e72b8f3 commit c0ba4f5

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

crates/core/src/db/relational_db.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -311,13 +311,6 @@ impl RelationalDB {
311311
.map(|x| x.map(|x| x.0))
312312
}
313313

314-
#[tracing::instrument(skip_all)]
315-
pub fn table_exist(&self, tx: &MutTxId, table_name: &str) -> Result<Option<u32>, DBError> {
316-
self.inner
317-
.table_id_from_name_mut_tx(tx, table_name)
318-
.map(|x| x.map(|x| x.0))
319-
}
320-
321314
#[tracing::instrument(skip_all)]
322315
pub fn table_name_from_id(&self, tx: &MutTxId, table_id: u32) -> Result<Option<String>, DBError> {
323316
self.inner.table_name_from_id_mut_tx(tx, TableId(table_id))

0 commit comments

Comments
 (0)