mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Remove unused method LocationInformationModel::addDiveSite()
The call to this method was removed in commit f4c31f110f
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
			
			
This commit is contained in:
		
							parent
							
								
									a7d71ea167
								
							
						
					
					
						commit
						d1545b27b4
					
				
					 2 changed files with 0 additions and 15 deletions
				
			
		|  | @ -131,20 +131,6 @@ void LocationInformationModel::update() | |||
| 	endResetModel(); | ||||
| } | ||||
| 
 | ||||
| uint32_t LocationInformationModel::addDiveSite(const QString& name, timestamp_t divetime, int lon, int lat) | ||||
| { | ||||
| 	degrees_t latitude, longitude; | ||||
| 	latitude.udeg = lat; | ||||
| 	longitude.udeg = lon; | ||||
| 
 | ||||
| 	beginInsertRows(QModelIndex(), dive_site_table.nr + 2, dive_site_table.nr + 2); | ||||
| 	uint32_t uuid = create_dive_site_with_gps(name.toUtf8().data(), latitude, longitude, divetime); | ||||
| 	qSort(dive_site_table.dive_sites, dive_site_table.dive_sites + dive_site_table.nr, dive_site_less_than); | ||||
| 	internalRowCount = dive_site_table.nr; | ||||
| 	endInsertRows(); | ||||
| 	return uuid; | ||||
| } | ||||
| 
 | ||||
| bool LocationInformationModel::setData(const QModelIndex &index, const QVariant &value, int role) | ||||
| { | ||||
| 	if (!index.isValid() || index.row() < 2) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue