2929#include < android-base/file.h>
3030#include < android-base/logging.h>
3131#include < android-base/strings.h>
32- #include < gflags/gflags.h>
3332#include < json/reader.h>
3433#include < json/value.h>
3534#include < json/writer.h>
@@ -44,7 +43,6 @@ namespace cuttlefish {
4443
4544namespace {
4645
47- const char * kFlags = " flags" ;
4846const char * kCvdFiles = " cvd_files" ;
4947const char * kCvdFileSource = " source" ;
5048const char * kCvdFileBuildId = " build_id" ;
@@ -113,25 +111,6 @@ bool FetcherConfig::LoadFromFile(const std::string& file) {
113111 return true ;
114112}
115113
116- void FetcherConfig::RecordFlags () {
117- std::vector<gflags::CommandLineFlagInfo> all_flags;
118- GetAllFlags (&all_flags);
119- Json::Value flags_json (Json::arrayValue);
120- for (const auto & flag : all_flags) {
121- Json::Value flag_json;
122- flag_json[" name" ] = flag.name ;
123- flag_json[" type" ] = flag.type ;
124- flag_json[" description" ] = flag.description ;
125- flag_json[" current_value" ] = flag.current_value ;
126- flag_json[" default_value" ] = flag.default_value ;
127- flag_json[" filename" ] = flag.filename ;
128- flag_json[" has_validator_fn" ] = flag.has_validator_fn ;
129- flag_json[" is_default" ] = flag.is_default ;
130- flags_json.append (flag_json);
131- }
132- (*dictionary_)[kFlags ] = flags_json;
133- }
134-
135114namespace {
136115
137116CvdFile JsonToCvdFile (const std::string& file_path, const Json::Value& json) {
0 commit comments