Remove another abandoned function
This commit is contained in:
parent
b02d28c676
commit
c3c777d07f
|
@ -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;
|
||||
}
|
||||
}
|
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue