mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Cleanup: remove MapLocationModel::get() function
It was not called anymore. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
		
							parent
							
								
									8e2d3254a2
								
							
						
					
					
						commit
						b9c35e21ea
					
				
					 2 changed files with 0 additions and 8 deletions
				
			
		|  | @ -121,13 +121,6 @@ int MapLocationModel::count() | ||||||
| 	return m_mapLocations.size(); | 	return m_mapLocations.size(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| MapLocation *MapLocationModel::get(int row) |  | ||||||
| { |  | ||||||
| 	if (row < 0 || row >= m_mapLocations.size()) |  | ||||||
| 		return NULL; |  | ||||||
| 	return m_mapLocations.at(row); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void MapLocationModel::add(MapLocation *location) | void MapLocationModel::add(MapLocation *location) | ||||||
| { | { | ||||||
| 	beginInsertRows(QModelIndex(), m_mapLocations.size(), m_mapLocations.size()); | 	beginInsertRows(QModelIndex(), m_mapLocations.size(), m_mapLocations.size()); | ||||||
|  |  | ||||||
|  | @ -57,7 +57,6 @@ public: | ||||||
| 	MapLocationModel(QObject *parent = NULL); | 	MapLocationModel(QObject *parent = NULL); | ||||||
| 	~MapLocationModel(); | 	~MapLocationModel(); | ||||||
| 
 | 
 | ||||||
| 	Q_INVOKABLE MapLocation *get(int row); |  | ||||||
| 	QVariant data(const QModelIndex &index, int role) const override; | 	QVariant data(const QModelIndex &index, int role) const override; | ||||||
| 	int rowCount(const QModelIndex &parent) const override; | 	int rowCount(const QModelIndex &parent) const override; | ||||||
| 	int count(); | 	int count(); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue