mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-23 20:47:01 +01:00
Clean removed schema struct
This commit is contained in:
parent
b8f906ed36
commit
3240d993b9
|
@ -23,7 +23,6 @@ use crate::value::{IndexType, PartialValue, SyntaxType, Value};
|
|||
use kanidm_proto::v1::{ConsistencyError, OperationError, SchemaError};
|
||||
|
||||
use std::borrow::Borrow;
|
||||
use std::collections::HashMap;
|
||||
use std::collections::{BTreeMap, BTreeSet};
|
||||
use uuid::Uuid;
|
||||
|
||||
|
@ -448,14 +447,6 @@ impl SchemaClass {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct SchemaInner {
|
||||
// We contain sets of classes and attributes.
|
||||
classes: HashMap<String, SchemaClass>,
|
||||
attributes: HashMap<String, SchemaAttribute>,
|
||||
idxmeta: BTreeSet<(String, IndexType)>,
|
||||
}
|
||||
|
||||
pub trait SchemaTransaction {
|
||||
fn get_classes(&self) -> BptreeMapReadSnapshot<String, SchemaClass>;
|
||||
fn get_attributes(&self) -> BptreeMapReadSnapshot<String, SchemaAttribute>;
|
||||
|
@ -552,8 +543,6 @@ pub trait SchemaTransaction {
|
|||
}
|
||||
}
|
||||
|
||||
impl SchemaInner {}
|
||||
|
||||
impl<'a> SchemaWriteTransaction<'a> {
|
||||
// Schema probably needs to be part of the backend, so that commits are wholly atomic
|
||||
// but in the current design, we need to open be first, then schema, but we have to commit be
|
||||
|
|
Loading…
Reference in a new issue