mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	diveplannermodel.cpp: move unused variables into a commented section
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
		
							parent
							
								
									44c0f978b3
								
							
						
					
					
						commit
						a8d8ec4ae9
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -691,8 +691,6 @@ divedatapoint DivePlannerPointsModel::at(int row)
 | 
			
		|||
 | 
			
		||||
void DivePlannerPointsModel::remove(const QModelIndex &index)
 | 
			
		||||
{
 | 
			
		||||
	int i;
 | 
			
		||||
	int rows = rowCount();
 | 
			
		||||
	if (index.column() != REMOVE || rowCount() == 1)
 | 
			
		||||
		return;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -707,6 +705,8 @@ void DivePlannerPointsModel::remove(const QModelIndex &index)
 | 
			
		|||
 * remove method that will pass the first and last index of the
 | 
			
		||||
 * removed rows, and remove those in a go.
 | 
			
		||||
 */
 | 
			
		||||
//	int i;
 | 
			
		||||
//	int rows = rowCount();
 | 
			
		||||
//	if (QApplication::keyboardModifiers() & Qt::ControlModifier) {
 | 
			
		||||
//		beginRemoveRows(QModelIndex(), index.row(), rows - 1);
 | 
			
		||||
//		for (i = rows - 1; i >= index.row(); i--)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue