Skip to content

Commit 06ba529

Browse files
authored
Remove unused get_column_by_field (#2917)
1 parent ef0b256 commit 06ba529

File tree

1 file changed

+0
-8
lines changed
  • crates/lib/src/db/raw_def

1 file changed

+0
-8
lines changed

crates/lib/src/db/raw_def/v8.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
//! Nothing to do with Chrome.
44
55
use crate::db::auth::{StAccess, StTableType};
6-
use crate::relation::FieldName;
76
use crate::{AlgebraicType, ProductType, SpacetimeType};
87
use derive_more::Display;
98
use spacetimedb_data_structures::map::HashSet;
@@ -509,13 +508,6 @@ impl RawTableDefV8 {
509508
.map(|idx| self.gen_constraint_def(Constraints::from_is_unique(idx.is_unique), idx.columns.clone()))
510509
}
511510

512-
/// Check if the `name` of the [FieldName] exist on this [RawTableDefV8]
513-
///
514-
/// Warning: It ignores the `table_id`
515-
pub fn get_column_by_field(&self, field: FieldName) -> Option<&RawColumnDefV8> {
516-
self.get_column(field.col.idx())
517-
}
518-
519511
/// Get a column by its position in the table.
520512
pub fn get_column(&self, pos: usize) -> Option<&RawColumnDefV8> {
521513
self.columns.get(pos)

0 commit comments

Comments
 (0)