mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Remove unused function
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									77f9bf06fd
								
							
						
					
					
						commit
						c463087ab0
					
				
					 1 changed files with 0 additions and 18 deletions
				
			
		
							
								
								
									
										18
									
								
								planner.c
									
										
									
									
									
								
							
							
						
						
									
										18
									
								
								planner.c
									
										
									
									
									
								
							|  | @ -375,24 +375,6 @@ struct divedatapoint *create_dp(int time_incr, int depth, struct gasmix gasmix, | |||
| 	return dp; | ||||
| } | ||||
| 
 | ||||
| struct divedatapoint *get_nth_dp(struct diveplan *diveplan, int idx) | ||||
| { | ||||
| 	struct divedatapoint **ldpp, *dp = diveplan->dp; | ||||
| 	int i = 0; | ||||
| 	struct gasmix air = { }; | ||||
| 	ldpp = &diveplan->dp; | ||||
| 
 | ||||
| 	while (dp && i++ < idx) { | ||||
| 		ldpp = &dp->next; | ||||
| 		dp = dp->next; | ||||
| 	} | ||||
| 	while (i++ <= idx) { | ||||
| 		*ldpp = dp = create_dp(0, 0, air, 0); | ||||
| 		ldpp = &((*ldpp)->next); | ||||
| 	} | ||||
| 	return dp; | ||||
| } | ||||
| 
 | ||||
| void add_to_end_of_diveplan(struct diveplan *diveplan, struct divedatapoint *dp) | ||||
| { | ||||
| 	struct divedatapoint **lastdp = &diveplan->dp; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue