Bug 1477917 - Part 1. Remove unused methods for spellchecker. r=masayuki

Differential Revision: https://phabricator.services.mozilla.com/D2348

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Makoto Kato 2018-07-26 03:09:14 +00:00
Родитель c4a2d8c091
Коммит 229108931f
4 изменённых файлов: 0 добавлений и 97 удалений

Просмотреть файл

@ -207,43 +207,6 @@ NS_IMETHODIMP mozHunspell::SetDictionary(const char16_t *aDictionary)
return NS_OK;
}
NS_IMETHODIMP mozHunspell::GetLanguage(char16_t **aLanguage)
{
NS_ENSURE_ARG_POINTER(aLanguage);
if (mDictionary.IsEmpty())
return NS_ERROR_NOT_INITIALIZED;
*aLanguage = ToNewUnicode(mLanguage);
return *aLanguage ? NS_OK : NS_ERROR_OUT_OF_MEMORY;
}
NS_IMETHODIMP mozHunspell::GetProvidesPersonalDictionary(bool *aProvidesPersonalDictionary)
{
NS_ENSURE_ARG_POINTER(aProvidesPersonalDictionary);
*aProvidesPersonalDictionary = false;
return NS_OK;
}
NS_IMETHODIMP mozHunspell::GetProvidesWordUtils(bool *aProvidesWordUtils)
{
NS_ENSURE_ARG_POINTER(aProvidesWordUtils);
*aProvidesWordUtils = false;
return NS_OK;
}
NS_IMETHODIMP mozHunspell::GetName(char16_t * *aName)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP mozHunspell::GetCopyright(char16_t * *aCopyright)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP mozHunspell::GetPersonalDictionary(mozIPersonalDictionary * *aPersonalDictionary)
{
*aPersonalDictionary = mPersonalDictionary;

Просмотреть файл

@ -54,24 +54,4 @@ interface mozIPersonalDictionary : nsISupports {
* Clear the ignore list
*/
void endSession();
/**
* These three functions are here in case we want to store previous
* misspellings and return them at the head of the misspell list.
*/
/**
* Add a misspelling to the list of corrections
*/
void addCorrection(in wstring word,in wstring correction, in wstring lang);
/**
* Remove a misspelling from the list of corrections
*/
void removeCorrection(in wstring word,in wstring correction, in wstring lang);
/**
* Get a list of previous corrections for the word
*/
void getCorrection(in wstring word, [array, size_is(count)] out wstring words, out uint32_t count);
};

Просмотреть файл

@ -27,31 +27,6 @@ interface mozISpellCheckingEngine : nsISupports {
*/
attribute wstring dictionary;
/**
* The language this spellchecker is using when checking
*/
readonly attribute wstring language;
/**
* Does the engine provide its own personal dictionary?
*/
readonly attribute boolean providesPersonalDictionary;
/**
* Does the engine provide its own word utils?
*/
readonly attribute boolean providesWordUtils;
/**
* The name of the engine
*/
readonly attribute wstring name;
/**
* a string indicating the copyright of the engine
*/
readonly attribute wstring copyright;
/**
* the personal dictionary
*/

Просмотреть файл

@ -444,21 +444,6 @@ NS_IMETHODIMP mozPersonalDictionary::EndSession()
return NS_OK;
}
NS_IMETHODIMP mozPersonalDictionary::AddCorrection(const char16_t *word, const char16_t *correction, const char16_t *lang)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP mozPersonalDictionary::RemoveCorrection(const char16_t *word, const char16_t *correction, const char16_t *lang)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP mozPersonalDictionary::GetCorrection(const char16_t *word, char16_t ***words, uint32_t *count)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP mozPersonalDictionary::Observe(nsISupports *aSubject, const char *aTopic, const char16_t *aData)
{
if (!nsCRT::strcmp(aTopic, "profile-do-change")) {