Bug 1298243 part 6. Remove the unused xpidl versions of DataTransfer.types and DataTransfer.getData. r=mystor

This commit is contained in:
Boris Zbarsky 2016-10-10 21:07:47 -04:00
parent 241a4d12eb
commit 668b8a8b2d
2 changed files with 0 additions and 38 deletions

View File

@ -356,23 +356,6 @@ DataTransfer::GetTypes(ErrorResult& aRv) const
return types.forget();
}
NS_IMETHODIMP
DataTransfer::GetTypes(nsISupports** aTypes)
{
if (NS_WARN_IF(!aTypes)) {
return NS_ERROR_FAILURE;
}
ErrorResult rv;
RefPtr<DOMStringList> types = GetTypes(rv);
if (NS_WARN_IF(rv.Failed())) {
return rv.StealNSResult();
}
types.forget(aTypes);
return NS_OK;
}
void
DataTransfer::GetData(const nsAString& aFormat, nsAString& aData,
const Maybe<nsIPrincipal*>& aSubjectPrincipal,
@ -433,14 +416,6 @@ DataTransfer::GetData(const nsAString& aFormat, nsAString& aData,
}
}
NS_IMETHODIMP
DataTransfer::GetData(const nsAString& aFormat, nsAString& aData)
{
ErrorResult rv;
GetData(aFormat, aData, Some(nsContentUtils::SubjectPrincipal()), rv);
return rv.StealNSResult();
}
void
DataTransfer::SetData(const nsAString& aFormat, const nsAString& aData,
const Maybe<nsIPrincipal*>& aSubjectPrincipal,

View File

@ -66,19 +66,6 @@ interface nsIDOMDataTransfer : nsISupports
*/
readonly attribute nsIDOMFileList files;
/**
* Holds a list of the format types of the data that is stored for the first
* item, in the same order the data was added. An empty list will be
* returned if no data was added.
*/
readonly attribute nsISupports types;
/**
* Retrieves the data for a given format, or an empty string if data for
* that format does not exist or the data transfer contains no data.
*/
DOMString getData(in DOMString format);
/**
* Set the image to be used for dragging if a custom one is desired. Most of
* the time, this would not be set, as a default image is created from the