Skip to content

Commit

Permalink
Remove unneeded EmptyPrefix
Browse files Browse the repository at this point in the history
  • Loading branch information
maurolacy committed Sep 19, 2021
1 parent 4ddbff5 commit 5010b07
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions packages/storage-plus/src/keys.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,15 +119,6 @@ impl<'a> Prefixer<'a> for &'a str {
}
}

// this is a marker for the Map.range() helper, so we can detect () in Generic bounds
pub trait EmptyPrefix {
fn new() -> Self;
}

impl EmptyPrefix for () {
fn new() {}
}

impl<'a> PrimaryKey<'a> for Vec<u8> {
type Prefix = ();
type SubPrefix = ();
Expand Down

0 comments on commit 5010b07

Please sign in to comment.