Clean removed schema struct

This commit is contained in:
William Brown 2020-04-11 16:25:43 +10:00
parent b8f906ed36
commit 3240d993b9

View file

@ -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