Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-marinica committed Sep 24, 2024
1 parent 4006993 commit 167d9b9
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 35 deletions.
7 changes: 0 additions & 7 deletions vm-core/src/types/address.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,13 +168,6 @@ impl Address {
self.0.is_zero()
}

// /// Transmutes self to an (in principle) variable length boxed bytes object.
// /// Both BoxedBytes and H256 keep the data on the heap, so only the pointer to that data needs to be transmuted.
// /// Does not reallocate or copy data, the data on the heap remains untouched.
// pub fn into_boxed_bytes(self) -> BoxedBytes {
// self.0.into_boxed_bytes()
// }

pub fn is_smart_contract_address(&self) -> bool {
self.as_bytes()
.iter()
Expand Down
14 changes: 0 additions & 14 deletions vm-core/src/types/heap_address.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,20 +198,6 @@ impl TopDecode for HeapAddress {
}
}

// impl TypeAbiFrom<Self> for HeapAddress {}

// impl TypeAbi for HeapAddress {
// type Unmanaged = Self;

// fn type_name() -> TypeName {
// "Address".into()
// }

// fn type_name_rust() -> TypeName {
// "Address".into()
// }
// }

#[cfg(test)]
mod address_tests {
use super::*;
Expand Down
14 changes: 0 additions & 14 deletions vm-core/src/types/heap_h256.rs
Original file line number Diff line number Diff line change
Expand Up @@ -224,20 +224,6 @@ impl TopDecode for HeapH256 {
}
}

// impl TypeAbiFrom<Self> for HeapH256 {}

// impl TypeAbi for HeapH256 {
// type Unmanaged = Self;

// fn type_name() -> TypeName {
// "H256".into()
// }

// fn type_name_rust() -> TypeName {
// "H256".into()
// }
// }

#[cfg(test)]
mod h256_tests {
use super::*;
Expand Down

0 comments on commit 167d9b9

Please sign in to comment.