Bug 1444919 part 1. Remove unused nsIDOMClipboardEvent methods. r=mystor

MozReview-Commit-ID: 39sy6Nnt1oy
This commit is contained in:
Boris Zbarsky 2018-03-13 00:59:23 -04:00
parent aa3ff36ffc
commit 99dc41ddbf
2 changed files with 0 additions and 32 deletions

View File

@ -33,21 +33,6 @@ NS_INTERFACE_MAP_END_INHERITING(Event)
NS_IMPL_ADDREF_INHERITED(ClipboardEvent, Event)
NS_IMPL_RELEASE_INHERITED(ClipboardEvent, Event)
nsresult
ClipboardEvent::InitClipboardEvent(const nsAString& aType,
bool aCanBubble,
bool aCancelable,
nsIDOMDataTransfer* aClipboardData)
{
nsCOMPtr<DataTransfer> clipboardData = do_QueryInterface(aClipboardData);
// Null clipboardData is OK
ErrorResult rv;
InitClipboardEvent(aType, aCanBubble, aCancelable, clipboardData);
return rv.StealNSResult();
}
void
ClipboardEvent::InitClipboardEvent(const nsAString& aType, bool aCanBubble,
bool aCancelable,
@ -90,13 +75,6 @@ ClipboardEvent::Constructor(const GlobalObject& aGlobal,
return e.forget();
}
NS_IMETHODIMP
ClipboardEvent::GetClipboardData(nsIDOMDataTransfer** aClipboardData)
{
NS_IF_ADDREF(*aClipboardData = GetClipboardData());
return NS_OK;
}
DataTransfer*
ClipboardEvent::GetClipboardData()
{

View File

@ -6,17 +6,7 @@
#include "domstubs.idl"
#include "nsISupports.idl"
interface nsIDOMDataTransfer;
[builtinclass, uuid(b54d6144-3980-4895-83c7-82f158bc1cf5)]
interface nsIDOMClipboardEvent : nsISupports
{
readonly attribute nsIDOMDataTransfer clipboardData;
// The constructor must be used from script to initialize
// clipboard events.
[noscript] void initClipboardEvent(in DOMString typeArg,
in boolean canBubbleArg,
in boolean cancelableArg,
in nsIDOMDataTransfer clipboardData);
};