From 9338007cffc6c96dba546e3a06b83a34a81b390a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5rten=20Kongstad?= Date: Thu, 20 Jul 2023 09:25:56 +0200 Subject: [PATCH] aconfig: remove the 'debug' dump format The --format=debug dump output format is largely superseded by the textproto format now that aconfig doesn't use hand-written wrappers around the auto-generated proto struct anymore. Remove the format to reduce the risk of code rot. Bug: 283910447 Test: atest aconfig.test Change-Id: I6700fc4eafd3fa3a63952109c0105d34c7ffd98b --- tools/aconfig/src/commands.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/tools/aconfig/src/commands.rs b/tools/aconfig/src/commands.rs index bf4592175c..2e2aa0f6c4 100644 --- a/tools/aconfig/src/commands.rs +++ b/tools/aconfig/src/commands.rs @@ -213,7 +213,6 @@ pub fn create_device_config_sysprops(mut input: Input) -> Result> { #[derive(Copy, Clone, Debug, PartialEq, Eq, ValueEnum)] pub enum DumpFormat { Text, - Debug, Protobuf, Textproto, } @@ -238,12 +237,6 @@ pub fn dump_parsed_flags(mut input: Vec, format: DumpFormat) -> Result { - for parsed_flag in parsed_flags.parsed_flag.into_iter() { - let line = format!("{:#?}\n", parsed_flag); - output.extend_from_slice(line.as_bytes()); - } - } DumpFormat::Protobuf => { parsed_flags.write_to_vec(&mut output)?; }