Remove another abandoned function

This commit is contained in:
Marek Roszko 2021-02-26 19:36:55 -05:00
parent b02d28c676
commit c3c777d07f
2 changed files with 1 additions and 35 deletions

View File

@ -203,30 +203,4 @@ bool GetAssociatedDocument( wxWindow* aParent, const wxString& aDocName, PROJECT
}
return success;
}
bool KeywordMatch( const wxString& aKeys, const wxString& aDatabase )
{
if( aKeys.IsEmpty() )
return false;
wxStringTokenizer keyTokenizer( aKeys, wxT( ", \t\n\r" ), wxTOKEN_STRTOK );
while( keyTokenizer.HasMoreTokens() )
{
wxString key = keyTokenizer.GetNextToken();
// Search for key in aDatabase:
wxStringTokenizer dataTokenizer( aDatabase, wxT( ", \t\n\r" ), wxTOKEN_STRTOK );
while( dataTokenizer.HasMoreTokens() )
{
if( dataTokenizer.GetNextToken() == key )
return true;
}
}
// keyword not found
return false;
}
}

View File

@ -31,14 +31,6 @@
#ifndef __INCLUDE__EDA_DOC_H__
#define __INCLUDE__EDA_DOC_H__ 1
/**
* Search \a aKeyList for any words found in \a aDatabase.
*
* @return true if keyword is found.
*/
bool KeywordMatch( const wxString& aKeys, const wxString& aDatabase );
/**
* Open a document (file) with the suitable browser.
*