Remove some dead code (#3970)

This commit removes methods that are never used between crates or trait
impls like `Clone` which may have been used one day but are no longer used.
This commit is contained in:
Alex Crichton
2022-03-30 13:51:34 -05:00
committed by GitHub
parent d1d10dc8da
commit 453feb6f82
6 changed files with 11 additions and 46 deletions

View File

@@ -17,7 +17,7 @@ use thiserror::Error;
/// Information about a function, such as trap information, address map,
/// and stack maps.
#[derive(Serialize, Deserialize, Clone, Default)]
#[derive(Serialize, Deserialize, Default)]
#[allow(missing_docs)]
pub struct FunctionInfo {
pub start_srcloc: FilePos,
@@ -31,7 +31,7 @@ pub struct FunctionInfo {
/// Information about a compiled trampoline which the host can call to enter
/// wasm.
#[derive(Serialize, Deserialize, Clone)]
#[derive(Serialize, Deserialize)]
#[allow(missing_docs)]
pub struct Trampoline {
/// The signature this trampoline is for
@@ -45,7 +45,7 @@ pub struct Trampoline {
/// The offset within a function of a GC safepoint, and its associated stack
/// map.
#[derive(Serialize, Deserialize, Debug, PartialEq, Eq, Clone)]
#[derive(Serialize, Deserialize, Debug)]
pub struct StackMapInformation {
/// The offset of the GC safepoint within the function's native code. It is
/// relative to the beginning of the function.