Bug 436685. FeedConverter does not need canConvert. r=gavin

This commit is contained in:
Sylvain Pasche 2009-04-06 12:28:17 +12:00
Родитель 97f2f2ede2
Коммит d2136523e7
1 изменённых файлов: 2 добавлений и 12 удалений

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

@ -161,17 +161,7 @@ FeedConverter.prototype = {
* Records if the feed was sniffed
*/
_sniffed: false,
/**
* See nsIStreamConverter.idl
*/
canConvert: function FC_canConvert(sourceType, destinationType) {
// We only support one conversion.
return destinationType == TYPE_ANY && ((sourceType == TYPE_MAYBE_FEED) ||
(sourceType == TYPE_MAYBE_VIDEO) ||
(sourceType == TYPE_MAYBE_AUDIO));
},
/**
* See nsIStreamConverter.idl
*/
@ -362,7 +352,7 @@ FeedConverter.prototype = {
/**
* See nsIRequestObserver.idl
*/
onStopRequest: function FC_onStopReqeust(request, context, status) {
onStopRequest: function FC_onStopRequest(request, context, status) {
if (this._processor)
this._processor.onStopRequest(request, context, status);
},