Skip to content

Commit

Permalink
Reland: Remove unused Settings::ToString. (flutter#8642) (flutter#32032)
Browse files Browse the repository at this point in the history
  • Loading branch information
eggfly authored Mar 16, 2022
1 parent 6250d7d commit ce9eef7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 52 deletions.
50 changes: 0 additions & 50 deletions common/settings.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,54 +16,4 @@ Settings::Settings(const Settings& other) = default;

Settings::~Settings() = default;

std::string Settings::ToString() const {
std::stringstream stream;
stream << "Settings: " << std::endl;
stream << "vm_snapshot_data_path: " << vm_snapshot_data_path << std::endl;
stream << "vm_snapshot_instr_path: " << vm_snapshot_instr_path << std::endl;
stream << "isolate_snapshot_data_path: " << isolate_snapshot_data_path
<< std::endl;
stream << "isolate_snapshot_instr_path: " << isolate_snapshot_instr_path
<< std::endl;
stream << "application_library_path:" << std::endl;
for (const auto& path : application_library_path) {
stream << " " << path << std::endl;
}
stream << "temp_directory_path: " << temp_directory_path << std::endl;
stream << "dart_flags:" << std::endl;
for (const auto& dart_flag : dart_flags) {
stream << " " << dart_flag << std::endl;
}
stream << "start_paused: " << start_paused << std::endl;
stream << "trace_skia: " << trace_skia << std::endl;
stream << "trace_startup: " << trace_startup << std::endl;
stream << "trace_systrace: " << trace_systrace << std::endl;
stream << "dump_skp_on_shader_compilation: " << dump_skp_on_shader_compilation
<< std::endl;
stream << "cache_sksl: " << cache_sksl << std::endl;
stream << "purge_persistent_cache: " << purge_persistent_cache << std::endl;
stream << "endless_trace_buffer: " << endless_trace_buffer << std::endl;
stream << "enable_dart_profiling: " << enable_dart_profiling << std::endl;
stream << "disable_dart_asserts: " << disable_dart_asserts << std::endl;
stream << "enable_serial_gc: " << enable_serial_gc << std::endl;
stream << "enable_observatory: " << enable_observatory << std::endl;
stream << "enable_observatory_publication: " << enable_observatory_publication
<< std::endl;
stream << "observatory_host: " << observatory_host << std::endl;
stream << "observatory_port: " << observatory_port << std::endl;
stream << "use_test_fonts: " << use_test_fonts << std::endl;
stream << "enable_software_rendering: " << enable_software_rendering
<< std::endl;
stream << "log_tag: " << log_tag << std::endl;
stream << "icu_initialization_required: " << icu_initialization_required
<< std::endl;
stream << "icu_data_path: " << icu_data_path << std::endl;
stream << "assets_dir: " << assets_dir << std::endl;
stream << "assets_path: " << assets_path << std::endl;
stream << "frame_rasterized_callback set: " << !!frame_rasterized_callback
<< std::endl;
stream << "old_gen_heap_size: " << old_gen_heap_size << std::endl;
return stream.str();
}

} // namespace flutter
2 changes: 0 additions & 2 deletions common/settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,6 @@ struct Settings {
/// on the clock used by the Dart timeline APIs. This timestamp is used
/// to log a timeline event that tracks the latency of engine startup.
std::chrono::microseconds engine_start_timestamp = {};

std::string ToString() const;
};

} // namespace flutter
Expand Down

0 comments on commit ce9eef7

Please sign in to comment.