about summary refs log tree commit diff
path: root/compiler/rustc_serialize/src
diff options
context:
space:
mode:
authorMark Rousskov <mark.simulacrum@gmail.com>2022-02-09 17:20:43 -0500
committerMark Rousskov <mark.simulacrum@gmail.com>2022-02-20 18:58:22 -0500
commitc021ba48a70e69fa681ea6617512ae2028e2677a (patch)
treea559aec34a2ed348bcd169d2a18021812213e1ae /compiler/rustc_serialize/src
parenta421b631ba0af42878250174e57ee25b8f7dbf03 (diff)
downloadrust-c021ba48a70e69fa681ea6617512ae2028e2677a.tar.gz
rust-c021ba48a70e69fa681ea6617512ae2028e2677a.zip
Delete Decoder::read_struct
Diffstat (limited to 'compiler/rustc_serialize/src')
-rw-r--r--compiler/rustc_serialize/src/serialize.rs8
1 files changed, 0 insertions, 8 deletions
diff --git a/compiler/rustc_serialize/src/serialize.rs b/compiler/rustc_serialize/src/serialize.rs
index 5e62a0f1eb2..1ce62d1224b 100644
--- a/compiler/rustc_serialize/src/serialize.rs
+++ b/compiler/rustc_serialize/src/serialize.rs
@@ -211,14 +211,6 @@ pub trait Decoder {
     }
 
     #[inline]
-    fn read_struct<T, F>(&mut self, f: F) -> T
-    where
-        F: FnOnce(&mut Self) -> T,
-    {
-        f(self)
-    }
-
-    #[inline]
     fn read_struct_field<T, F>(&mut self, _f_name: &str, f: F) -> T
     where
         F: FnOnce(&mut Self) -> T,