mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	filter: remove diveContainsText()
This function checked a dive for a search string. Its functionality was replaced by a fulltext index. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
		
							parent
							
								
									8cb43ed237
								
							
						
					
					
						commit
						f3a3d93b85
					
				
					 2 changed files with 0 additions and 18 deletions
				
			
		|  | @ -1426,23 +1426,6 @@ QString getUUID() | |||
| 	return uuidString; | ||||
| } | ||||
| 
 | ||||
| static bool contains(const char *s, const QString &filterstring, Qt::CaseSensitivity cs) | ||||
| { | ||||
| 	return !empty_string(s) && QString(s).contains(filterstring, cs); | ||||
| } | ||||
| 
 | ||||
| bool diveContainsText(const struct dive *d, const QString &filterstring, Qt::CaseSensitivity cs, bool includeNotes) | ||||
| { | ||||
| 	if (!d) | ||||
| 		return false; | ||||
| 	return contains(get_dive_location(d), filterstring, cs) || | ||||
| 	       (d->divetrip && contains(d->divetrip->location, filterstring, cs)) || | ||||
| 	       contains(d->buddy, filterstring, cs) || | ||||
| 	       contains(d->divemaster, filterstring, cs) || | ||||
| 	       contains(d->suit, filterstring, cs) || | ||||
| 	       get_taglist_string(d->tag_list).contains(filterstring, cs) || | ||||
| 	       (includeNotes && contains(d->notes, filterstring, cs)); | ||||
| } | ||||
| int parse_seabear_header(const char *filename, char **params, int pnr) | ||||
| { | ||||
| 	QFile f(filename); | ||||
|  |  | |||
|  | @ -81,7 +81,6 @@ QLocale getLocale(); | |||
| QVector<QPair<QString, int>> selectedDivesGasUsed(); | ||||
| QString getUserAgent(); | ||||
| QString printGPSCoords(const location_t *loc); | ||||
| bool diveContainsText(const struct dive *d, const QString &filterstring, Qt::CaseSensitivity cs, bool includeNotes); | ||||
| 
 | ||||
| #if defined __APPLE__ | ||||
| #define TITLE_OR_TEXT(_t, _m) "", _t + "\n" + _m | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue