mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Remove some unused variables
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									aabcff9c54
								
							
						
					
					
						commit
						0813d2168a
					
				
					 4 changed files with 2 additions and 4 deletions
				
			
		|  | @ -350,7 +350,6 @@ void populate_pressure_information(struct dive *dive, struct divecomputer *dc, s | ||||||
| 	cylinder_t *cylinder = dive->cylinder + sensor; | 	cylinder_t *cylinder = dive->cylinder + sensor; | ||||||
| 	pr_track_t *track = NULL; | 	pr_track_t *track = NULL; | ||||||
| 	pr_track_t *current = NULL; | 	pr_track_t *current = NULL; | ||||||
| 	struct plot_data *entry; |  | ||||||
| 	struct event *ev; | 	struct event *ev; | ||||||
| 	int missing_pr = 0, dense = 1; | 	int missing_pr = 0, dense = 1; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -1460,7 +1460,7 @@ void compare_samples(struct plot_data *e1, struct plot_data *e2, char *buf, int | ||||||
| 	char *buf2 = malloc(bufsize); | 	char *buf2 = malloc(bufsize); | ||||||
| 	int avg_speed, max_asc_speed, max_desc_speed; | 	int avg_speed, max_asc_speed, max_desc_speed; | ||||||
| 	int delta_depth, avg_depth, max_depth, min_depth; | 	int delta_depth, avg_depth, max_depth, min_depth; | ||||||
| 	int bar_used, last_pressure, pressurevalue, last_cylidx; | 	int bar_used, last_pressure, pressurevalue; | ||||||
| 	int count, last_sec, delta_time; | 	int count, last_sec, delta_time; | ||||||
| 	bool crossed_tankchange = false; | 	bool crossed_tankchange = false; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -348,7 +348,7 @@ static void save_sample(struct membuffer *b, struct sample *sample, struct sampl | ||||||
| static void save_samples(struct membuffer *b, struct dive *dive, struct divecomputer *dc) | static void save_samples(struct membuffer *b, struct dive *dive, struct divecomputer *dc) | ||||||
| { | { | ||||||
| 	int nr; | 	int nr; | ||||||
| 	int o2sensor, legacy; | 	int o2sensor; | ||||||
| 	struct sample *s; | 	struct sample *s; | ||||||
| 	struct sample dummy = {}; | 	struct sample dummy = {}; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -344,7 +344,6 @@ bool is_cylinder_used(struct dive *dive, int idx) | ||||||
| void get_gas_used(struct dive *dive, volume_t gases[MAX_CYLINDERS]) | void get_gas_used(struct dive *dive, volume_t gases[MAX_CYLINDERS]) | ||||||
| { | { | ||||||
| 	int idx; | 	int idx; | ||||||
| 	struct divecomputer *dc; |  | ||||||
| 
 | 
 | ||||||
| 	for (idx = 0; idx < MAX_CYLINDERS; idx++) { | 	for (idx = 0; idx < MAX_CYLINDERS; idx++) { | ||||||
| 		cylinder_t *cyl = &dive->cylinder[idx]; | 		cylinder_t *cyl = &dive->cylinder[idx]; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue