From 97991e2b9fff4254c2b40417bf6d7496ba0d849f Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 6 Oct 2018 10:58:12 +0200 Subject: Statistics: remove global state / calculate only when needed Statistics were calculated into global variables every time the current dive was changed. Calculate statistics only when needed and into a structure provided by the caller. Signed-off-by: Berthold Stoeger --- export-html.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'export-html.cpp') diff --git a/export-html.cpp b/export-html.cpp index fecbb5235..4907a6bb6 100644 --- a/export-html.cpp +++ b/export-html.cpp @@ -49,13 +49,9 @@ int main(int argc, char **argv) // this should have set up the informational preferences - let's grab // the units from there - prefs.unit_system = git_prefs.unit_system; prefs.units = git_prefs.units; - // populate the statistics - process_all_dives(); - // now set up the export settings to create the HTML export struct htmlExportSetting hes; hes.themeFile = "sand.css"; -- cgit v1.2.3-70-g09d2