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:
Thomas Goyne 2011-09-28 19:45:07 +00:00
parent 4ec507f814
commit 432abc309b
2 changed files with 0 additions and 11 deletions

View file

@ -95,10 +95,7 @@
// Enable Hunspell-based spellchecker // Enable Hunspell-based spellchecker
// Requires: hunspell (in repository for Win32) // 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_HUNSPELL
//#define WITH_OLD_HUNSPELL
// Enable "final release" mode // Enable "final release" mode

View file

@ -81,11 +81,7 @@ void HunspellSpellChecker::AddWord(wxString word) {
std::string sword = STD_STR(word); std::string sword = STD_STR(word);
// Add it to the in-memory dictionary // 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()); hunspell->add(conv->Convert(sword).c_str());
#endif
std::list<std::string> words; std::list<std::string> words;
@ -235,11 +231,7 @@ void HunspellSpellChecker::SetLanguage(wxString language) {
for (; userDic != end; ++userDic) { for (; userDic != end; ++userDic) {
if (userDic->empty()) continue; if (userDic->empty()) continue;
try { try {
#ifdef WITH_OLD_HUNSPELL
hunspell->put_word(conv->Convert(*userDic).c_str());
#else
hunspell->add(conv->Convert(*userDic).c_str()); hunspell->add(conv->Convert(*userDic).c_str());
#endif
} }
catch (agi::charset::ConvError const&) { catch (agi::charset::ConvError const&) {
// Normally this shouldn't happen, but some versions of Aegisub // Normally this shouldn't happen, but some versions of Aegisub