Remove WITH_OLD_HUNSPELL. 1.2.0 is four years old and the configure script doesn't even support older versions that would require WITH_OLD_HUNSPELL
Originally committed to SVN as r5618.
This commit is contained in:
parent
4ec507f814
commit
432abc309b
2 changed files with 0 additions and 11 deletions
|
@ -95,10 +95,7 @@
|
|||
|
||||
// Enable Hunspell-based spellchecker
|
||||
// Requires: hunspell (in repository for Win32)
|
||||
// If you have an old version of Hunspell (that uses Hunspell::put_word() instead of Hunspell::add()),
|
||||
// uncomment the second line as well.
|
||||
#define WITH_HUNSPELL
|
||||
//#define WITH_OLD_HUNSPELL
|
||||
|
||||
|
||||
// Enable "final release" mode
|
||||
|
|
|
@ -81,11 +81,7 @@ void HunspellSpellChecker::AddWord(wxString word) {
|
|||
std::string sword = STD_STR(word);
|
||||
|
||||
// Add it to the in-memory dictionary
|
||||
#ifdef WITH_OLD_HUNSPELL
|
||||
hunspell->put_word(conv->Convert(sword).c_str());
|
||||
#else
|
||||
hunspell->add(conv->Convert(sword).c_str());
|
||||
#endif
|
||||
|
||||
std::list<std::string> words;
|
||||
|
||||
|
@ -235,11 +231,7 @@ void HunspellSpellChecker::SetLanguage(wxString language) {
|
|||
for (; userDic != end; ++userDic) {
|
||||
if (userDic->empty()) continue;
|
||||
try {
|
||||
#ifdef WITH_OLD_HUNSPELL
|
||||
hunspell->put_word(conv->Convert(*userDic).c_str());
|
||||
#else
|
||||
hunspell->add(conv->Convert(*userDic).c_str());
|
||||
#endif
|
||||
}
|
||||
catch (agi::charset::ConvError const&) {
|
||||
// Normally this shouldn't happen, but some versions of Aegisub
|
||||
|
|
Loading…
Reference in a new issue