From e09afafc43b19770b0c52dcc04304b4e95a47f97 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Sat, 4 Nov 2023 16:21:29 +0000 Subject: [PATCH] Avoid unnecessarily overriding `serialized_length` ...as LLVM will handle it just fine for us, in most cases. --- lightning/src/ln/script.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lightning/src/ln/script.rs b/lightning/src/ln/script.rs index 6c1d2102..079416ea 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 { -- 2.30.2