Bug 229903 remove bogus QueryInterface methods from bookmarks.js r=pch sr=dbaron

This commit is contained in:
neil%parkwaycc.co.uk 2007-05-05 04:36:35 +00:00
Родитель f5d951360d
Коммит 7b5981207c
1 изменённых файлов: 15 добавлений и 55 удалений

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

@ -1599,12 +1599,21 @@ BookmarkTransaction.prototype = {
if (this.item.length > this.BATCH_LIMIT) {
this.BMDS.endUpdateBatch();
}
}
},
// nsITransaction method stubs
doTransaction: function() {},
undoTransaction: function() {},
redoTransaction: function() { this.doTransaction(); },
get isTransient() { return false; },
merge: function(aTransaction) { return false; },
// debugging helper
get wrappedJSObject() { return this; }
}
function BookmarkInsertTransaction (aAction)
{
this.wrappedJSObject = this;
this.type = "insert";
this.action = aAction;
this.item = null;
@ -1617,8 +1626,6 @@ BookmarkInsertTransaction.prototype =
{
__proto__: BookmarkTransaction.prototype,
isTransient: false,
doTransaction: function ()
{
this.beginUpdateBatch();
@ -1643,24 +1650,12 @@ BookmarkInsertTransaction.prototype =
}
}
this.endUpdateBatch();
},
redoTransaction: function ()
{
this.doTransaction();
},
merge : function (aTransaction) {return false},
QueryInterface : function (aUID) {return this},
getHelperForLanguage: function (aCount) {return null},
getInterfaces : function (aCount) {return null},
canCreateWrapper : function (aIID) {return "AllAccess"}
}
}
function BookmarkRemoveTransaction (aAction)
{
this.wrappedJSObject = this;
this.type = "remove";
this.action = aAction;
this.item = null;
@ -1673,8 +1668,6 @@ BookmarkRemoveTransaction.prototype =
{
__proto__: BookmarkTransaction.prototype,
isTransient: false,
doTransaction: function ()
{
this.beginUpdateBatch();
@ -1697,24 +1690,12 @@ BookmarkRemoveTransaction.prototype =
}
}
this.endUpdateBatch();
},
redoTransaction: function ()
{
this.doTransaction();
},
merge : function (aTransaction) {return false},
QueryInterface : function (aUID) {return this},
getHelperForLanguage: function (aCount) {return null},
getInterfaces : function (aCount) {return null},
canCreateWrapper : function (aIID) {return "AllAccess"}
}
}
function BookmarkMoveTransaction (aAction, aSelection, aTarget)
{
this.wrappedJSObject = this;
this.type = "move";
this.action = aAction;
this.selection = aSelection;
@ -1726,8 +1707,6 @@ BookmarkMoveTransaction.prototype =
{
__proto__: BookmarkTransaction.prototype,
isTransient: false,
beginUpdateBatch: function()
{
if (this.selection.length > this.BATCH_LIMIT) {
@ -1750,19 +1729,12 @@ BookmarkMoveTransaction.prototype =
this.endUpdateBatch();
},
undoTransaction : function () {},
redoTransaction : function () {},
merge : function (aTransaction) {return false},
QueryInterface : function (aUID) {return this},
getHelperForLanguage: function (aCount) {return null},
getInterfaces : function (aCount) {return null},
canCreateWrapper : function (aIID) {return "AllAccess"}
redoTransaction : function () {}
}
function BookmarkImportTransaction (aAction)
{
this.wrappedJSObject = this;
this.type = "import";
this.action = aAction;
this.item = [];
@ -1775,12 +1747,6 @@ BookmarkImportTransaction.prototype =
{
__proto__: BookmarkTransaction.prototype,
isTransient: false,
doTransaction: function ()
{
},
undoTransaction: function ()
{
this.beginUpdateBatch();
@ -1803,12 +1769,6 @@ BookmarkImportTransaction.prototype =
}
}
this.endUpdateBatch();
},
merge : function (aTransaction) {return false},
QueryInterface : function (aUID) {return this},
getHelperForLanguage: function (aCount) {return null},
getInterfaces : function (aCount) {return null},
canCreateWrapper : function (aIID) {return "AllAccess"}
}
}