mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Cleanup: Remove unused function calls in main tab
per_cylinder_mean_depth() and selected_dives_gas_parts() are used in the dive-information and statistics tab, respectively. Nevertheless, these functions are called on the main tab as well and the result is trashed. Therefore remove the calls. Must have been an artifact. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
		
							parent
							
								
									8f119dcf72
								
							
						
					
					
						commit
						e3577ffd7e
					
				
					 1 changed files with 0 additions and 7 deletions
				
			
		|  | @ -9,7 +9,6 @@ | |||
| #include "desktop-widgets/mainwindow.h" | ||||
| #include "desktop-widgets/mapwidget.h" | ||||
| #include "core/qthelper.h" | ||||
| #include "core/statistics.h" | ||||
| #include "core/trip.h" | ||||
| #include "qt-models/diveplannermodel.h" | ||||
| #include "desktop-widgets/divelistview.h" | ||||
|  | @ -564,12 +563,6 @@ void MainTab::updateDiveInfo() | |||
| 		ui.duration->setText(render_seconds_to_string(current_dive->duration.seconds)); | ||||
| 		ui.depth->setText(get_depth_string(current_dive->maxdepth, true)); | ||||
| 
 | ||||
| 		int mean[MAX_CYLINDERS], duration[MAX_CYLINDERS]; | ||||
| 		per_cylinder_mean_depth(&displayed_dive, select_dc(&displayed_dive), mean, duration); | ||||
| 
 | ||||
| 		volume_t o2_tot = {}, he_tot = {}; | ||||
| 		selected_dives_gas_parts(&o2_tot, &he_tot); | ||||
| 
 | ||||
| 		if(ui.locationTags->text().isEmpty()) | ||||
| 			ui.locationTags->hide(); | ||||
| 		else | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue