Bug 1483119 - Get rid of HTMLEditor::GetURLForStyleSheet() since unused r=m_kato

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Masayuki Nakano 2018-08-16 10:03:49 +00:00
Родитель b01e3d2d25
Коммит 72aa2e3133
2 изменённых файлов: 4 добавлений и 19 удалений

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

@ -3247,22 +3247,6 @@ HTMLEditor::GetStyleSheetForURL(const nsAString& aURL)
return mStyleSheets[foundIndex];
}
void
HTMLEditor::GetURLForStyleSheet(StyleSheet* aStyleSheet,
nsAString& aURL)
{
// is it already in the list?
int32_t foundIndex = mStyleSheets.IndexOf(aStyleSheet);
// Don't fail if we don't find it in our list
if (foundIndex == -1) {
return;
}
// Found it in the list!
aURL = mStyleSheetURLs[foundIndex];
}
NS_IMETHODIMP
HTMLEditor::GetEmbeddedObjects(nsIArray** aNodeList)
{

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

@ -970,11 +970,12 @@ protected: // Shouldn't be used by friend classes
bool EnableExistingStyleSheet(const nsAString& aURL);
/**
* Dealing with the internal style sheet lists.
* GetStyleSheetForURL() returns a pointer to StyleSheet which was added
* with AddOverrideStyleSheetInternal(). If it's not found, returns nullptr.
*
* @param aURL URL to the style sheet.
*/
StyleSheet* GetStyleSheetForURL(const nsAString& aURL);
void GetURLForStyleSheet(StyleSheet* aStyleSheet,
nsAString& aURL);
/**
* Add a url + known style sheet to the internal lists.