From: Matt Corallo Date: Sat, 4 Nov 2023 16:21:29 +0000 (+0000) Subject: Avoid unnecessarily overriding `serialized_length` X-Git-Tag: v0.0.119~57^2~8 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=e09afafc43b19770b0c52dcc04304b4e95a47f97;p=rust-lightning Avoid unnecessarily overriding `serialized_length` ...as LLVM will handle it just fine for us, in most cases. --- diff --git a/lightning/src/ln/script.rs b/lightning/src/ln/script.rs index 6c1d21024..079416eae 100644 --- a/lightning/src/ln/script.rs +++ b/lightning/src/ln/script.rs @@ -44,10 +44,6 @@ impl Writeable for ShutdownScript { fn write(&self, w: &mut W) -> Result<(), io::Error> { self.0.write(w) } - - fn serialized_length(&self) -> usize { - self.0.serialized_length() - } } impl Readable for ShutdownScript {