Skip to content

Commit

Permalink
remove useless schema
Browse files Browse the repository at this point in the history
  • Loading branch information
KaoImin committed Aug 18, 2023
1 parent 4f353be commit 766458d
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions core/storage/src/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,6 @@ use protocol::types::{Block, Bytes, DBBytes, Hash, Header, Proof, Receipt, Signe
use crate::hash_key::{BlockKey, CommonHashKey};

macro_rules! impl_storage_schema_for {
($name: ident, $category: ident) => {
pub struct $name;

impl StorageSchema for $name {
type Key = DBBytes;
type Value = DBBytes;

fn category() -> StorageCategory {
StorageCategory::$category
}
}
};

($name: ident, $key: ty, $val: ty, $category: ident) => {
pub struct $name;

Expand Down Expand Up @@ -54,8 +41,3 @@ impl_storage_schema_for!(LatestProofSchema, Hash, Proof, Block);
impl_storage_schema_for!(OverlordWalSchema, Hash, Bytes, Wal);
impl_storage_schema_for!(EvmCodeSchema, Hash, Bytes, Code);
impl_storage_schema_for!(EvmCodeAddressSchema, Hash, Hash, Code);

// The following schemas are used in state related MPT.
impl_storage_schema_for!(EvmStateSchema, EvmState);
impl_storage_schema_for!(MetadataStateSchema, MetadataState);
impl_storage_schema_for!(CkbLightClientStateSchema, CkbLightClientState);

0 comments on commit 766458d

Please sign in to comment.