Bug 1717178 - part 5: Get rid of `nsIHTMLEditor.pasteNoFormatting()` because of unused r=m_kato

Depends on D118800

Differential Revision: https://phabricator.services.mozilla.com/D118801
This commit is contained in:
Masayuki Nakano 2021-06-28 12:08:50 +00:00
Родитель bc454f8841
Коммит 3e099ba376
3 изменённых файлов: 1 добавлений и 19 удалений

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

@ -229,7 +229,7 @@ class HTMLEditor final : public EditorBase,
nsIPrincipal* aPrincipal = nullptr) final;
/**
* PasteNoFormatting() pastes content in clipboard without any style
* PasteNoFormattingAsAction() pastes content in clipboard without any style
* information.
*
* @param aSelectionType nsIClipboard::kGlobalClipboard or

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

@ -2209,16 +2209,6 @@ nsresult HTMLEditor::PasteTransferableAsAction(nsITransferable* aTransferable,
return EditorBase::ToGenericNSResult(rv);
}
/**
* HTML PasteNoFormatting. Ignore any HTML styles and formating in paste source.
*/
NS_IMETHODIMP HTMLEditor::PasteNoFormatting(int32_t aSelectionType) {
nsresult rv = PasteNoFormattingAsAction(aSelectionType);
NS_WARNING_ASSERTION(NS_SUCCEEDED(rv),
"HTMLEditor::PasteNoFormattingAsAction() failed");
return rv;
}
nsresult HTMLEditor::PasteNoFormattingAsAction(int32_t aSelectionType,
nsIPrincipal* aPrincipal) {
AutoEditActionDataSetter editActionData(*this, EditAction::ePaste,

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

@ -108,14 +108,6 @@ interface nsIHTMLEditor : nsISupports
[can_run_script]
void insertHTML(in AString aInputString);
/**
* Paste the text in the OS clipboard at the cursor position, replacing
* the selected text (if any), but strip out any HTML styles and formatting
*/
[can_run_script]
void pasteNoFormatting(in long aSelectionType);
/**
* Rebuild the entire document from source HTML
* Needed to be able to edit HEAD and other outside-of-BODY content