Bug 335129 remove unused calIObserver.onAlarm, r=dmose

This commit is contained in:
jminta%gmail.com 2006-05-30 00:18:22 +00:00
parent ba8e59ec91
commit 33ca8e93d3
13 changed files with 0 additions and 24 deletions

View File

@ -1302,8 +1302,6 @@
this.calView.doDeleteItem(occ); this.calView.doDeleteItem(occ);
} }
}, },
//XXXvv Alarm could, in theory, flash the event or something
onAlarm: function (aAlarmItem) { },
onError: function (aErrNo, aMessage) { }, onError: function (aErrNo, aMessage) { },
// //

View File

@ -1760,8 +1760,6 @@
this.calView.readjust(); this.calView.readjust();
}, },
//XXXvv Alarm could, in theory, flash the event or something
onAlarm: function onAlarm(aAlarmItem) { },
onError: function onError(aErrNo, aMessage) { }, onError: function onError(aErrNo, aMessage) { },
// //

View File

@ -374,7 +374,6 @@ interface calIObserver : nsISupports
void onAddItem( in calIItemBase aItem ); void onAddItem( in calIItemBase aItem );
void onModifyItem( in calIItemBase aNewItem, in calIItemBase aOldItem ); void onModifyItem( in calIItemBase aNewItem, in calIItemBase aOldItem );
void onDeleteItem( in calIItemBase aDeletedItem ); void onDeleteItem( in calIItemBase aDeletedItem );
void onAlarm( in calIItemBase aAlarmItem );
void onError( in nsresult aErrNo, in AUTF8String aMessage ); void onError( in nsresult aErrNo, in AUTF8String aMessage );
}; };

View File

@ -92,7 +92,6 @@ function calAlarmService() {
onDeleteItem: function(aDeletedItem) { onDeleteItem: function(aDeletedItem) {
this.alarmService.removeAlarm(aDeletedItem); this.alarmService.removeAlarm(aDeletedItem);
}, },
onAlarm: function(aAlarmItem) { },
onError: function(aErrNo, aMessage) { } onError: function(aErrNo, aMessage) { }
}; };

View File

@ -383,7 +383,6 @@ function errorAnnouncer(calendar) {
onAddItem: function(aItem) {}, onAddItem: function(aItem) {},
onModifyItem: function(aNewItem, aOldItem) {}, onModifyItem: function(aNewItem, aOldItem) {},
onDeleteItem: function(aDeletedItem) {}, onDeleteItem: function(aDeletedItem) {},
onAlarm: function(aAlarmItem) {},
onError: function(aErrNo, aMessage) { onError: function(aErrNo, aMessage) {
announcer.announceError(aErrNo, aMessage); announcer.announceError(aErrNo, aMessage);
} }

View File

@ -451,7 +451,6 @@ function observer_onModifyItem(newItem, oldItem)
this.onAddItem(newItem); this.onAddItem(newItem);
}; };
agendaTreeView.calendarObserver.onAlarm = function(item) {};
agendaTreeView.calendarObserver.onError = function(errno, msg) {}; agendaTreeView.calendarObserver.onError = function(errno, msg) {};
agendaTreeView.calendarObserver.onCalendarAdded = agendaTreeView.calendarObserver.onCalendarAdded =

View File

@ -141,7 +141,6 @@ var ltnCompositeCalendarObserver = {
onAddItem: function(aItem) { }, onAddItem: function(aItem) { },
onModifyItem: function(aNewItem, aOldItem) { }, onModifyItem: function(aNewItem, aOldItem) { },
onDeleteItem: function(aDeletedItem) { }, onDeleteItem: function(aDeletedItem) { },
onAlarm: function(aAlarmItem) { },
onError: function(aErrNo, aMessage) { } onError: function(aErrNo, aMessage) { }
}; };

View File

@ -59,10 +59,6 @@
this.todoList.addTodo(aNewItem); this.todoList.addTodo(aNewItem);
}, },
onAlarm: function onAlarm(aItem)
{
},
onError: function onError(aErrNo, aMessage) onError: function onError(aErrNo, aMessage)
{ {
}, },

View File

@ -90,10 +90,6 @@ calCompositeCalendarObserverHelper.prototype = {
this.notifyObservers("onDeleteItem", arguments); this.notifyObservers("onDeleteItem", arguments);
}, },
onAlarm: function(aAlarmItem) {
this.notifyObservers("onAlarm", arguments);
},
onError: function(aErrNo, aMessage) { onError: function(aErrNo, aMessage) {
this.notifyObservers("onError", arguments); this.notifyObservers("onError", arguments);
} }

View File

@ -808,10 +808,6 @@ calICSObserver.prototype = {
for (var i = 0; i < this.mObservers.length; i++) for (var i = 0; i < this.mObservers.length; i++)
this.mObservers[i].onDeleteItem(aDeletedItem); this.mObservers[i].onDeleteItem(aDeletedItem);
}, },
onAlarm: function(aAlarmItem) {
for (var i = 0; i < this.mObservers.length; i++)
this.mObservers[i].onAlarm(aAlarmItem);
},
// Unless an error number is in this array, we consider it very bad, set // Unless an error number is in this array, we consider it very bad, set
// the calendar to readOnly, and give up. // the calendar to readOnly, and give up.

View File

@ -157,7 +157,6 @@ var calCompositeCalendarObserver = {
onAddItem: function(aItem) { }, onAddItem: function(aItem) { },
onModifyItem: function(aNewItem, aOldItem) { }, onModifyItem: function(aNewItem, aOldItem) { },
onDeleteItem: function(aDeletedItem) { }, onDeleteItem: function(aDeletedItem) { },
onAlarm: function(aAlarmItem) { },
onError: function(aErrNo, aMessage) { } onError: function(aErrNo, aMessage) { }
}; };

View File

@ -225,7 +225,6 @@ var unifinderObserver = {
} }
}, },
onAlarm: function(aAlarmItem) {},
onError: function(aErrNo, aMessage) {}, onError: function(aErrNo, aMessage) {},
// calICompositeObserver: // calICompositeObserver:

View File

@ -100,7 +100,6 @@ var unifinderToDoDataSourceObserver =
!this.mInBatch) !this.mInBatch)
toDoUnifinderRefresh(); toDoUnifinderRefresh();
}, },
onAlarm: function(aAlarmItem) {},
onError: function(aErrNo, aMessage) {}, onError: function(aErrNo, aMessage) {},
// calICompositeObserver: // calICompositeObserver: