Skip to content

Commit

Permalink
fix: Remove accidentally commited code (to be squashed)
Browse files Browse the repository at this point in the history
  • Loading branch information
SzczurekYT authored Apr 9, 2024
1 parent 125741f commit d2a345b
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/nbt/compound.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,7 @@ impl NbtCompound {
bytes.put_u8(END_ID);
bytes.freeze()
}

pub fn from_values(values: Vec<(&str, NbtTag)>) -> Self {
let mut child_tags = HashMap::new();
for (name, tag) in values {
let name_string = name.to_string();
child_tags.insert(name_string, tag);
}
Self { child_tags }
}


/// Puts a value into the compound
/// # Examples
/// ```
Expand Down

0 comments on commit d2a345b

Please sign in to comment.