mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Cleanup: remove two unused macros in tabwidgets/maintab.cpp
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
		
							parent
							
								
									7bd860f2b7
								
							
						
					
					
						commit
						8251a6e980
					
				
					 1 changed files with 0 additions and 10 deletions
				
			
		| 
						 | 
					@ -1018,15 +1018,6 @@ void MainTab::resetPallete()
 | 
				
			||||||
	ui.depth->setPalette(p);
 | 
						ui.depth->setPalette(p);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define EDIT_TEXT2(what, text)         \
 | 
					 | 
				
			||||||
	textByteArray = text.toUtf8(); \
 | 
					 | 
				
			||||||
	free(what);                    \
 | 
					 | 
				
			||||||
	what = strdup(textByteArray.data());
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#define FREE_IF_DIFFERENT(what)              \
 | 
					 | 
				
			||||||
	if (displayed_dive.what != cd->what) \
 | 
					 | 
				
			||||||
		free(displayed_dive.what)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
void MainTab::rejectChanges()
 | 
					void MainTab::rejectChanges()
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	EditMode lastMode = editMode;
 | 
						EditMode lastMode = editMode;
 | 
				
			||||||
| 
						 | 
					@ -1074,7 +1065,6 @@ void MainTab::rejectChanges()
 | 
				
			||||||
	weightModel->updateDive();
 | 
						weightModel->updateDive();
 | 
				
			||||||
	ui.editDiveSiteButton->setEnabled(!ui.location->text().isEmpty());
 | 
						ui.editDiveSiteButton->setEnabled(!ui.location->text().isEmpty());
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
#undef EDIT_TEXT2
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
void MainTab::markChangedWidget(QWidget *w)
 | 
					void MainTab::markChangedWidget(QWidget *w)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue