File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed
crates/lib/src/db/raw_def Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change 3
3
//! Nothing to do with Chrome.
4
4
5
5
use crate :: db:: auth:: { StAccess , StTableType } ;
6
- use crate :: relation:: FieldName ;
7
6
use crate :: { AlgebraicType , ProductType , SpacetimeType } ;
8
7
use derive_more:: Display ;
9
8
use spacetimedb_data_structures:: map:: HashSet ;
@@ -509,13 +508,6 @@ impl RawTableDefV8 {
509
508
. map ( |idx| self . gen_constraint_def ( Constraints :: from_is_unique ( idx. is_unique ) , idx. columns . clone ( ) ) )
510
509
}
511
510
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
-
519
511
/// Get a column by its position in the table.
520
512
pub fn get_column ( & self , pos : usize ) -> Option < & RawColumnDefV8 > {
521
513
self . columns . get ( pos)
You can’t perform that action at this time.
0 commit comments