mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-04-03 21:22:47 +00:00
Bug 335129 remove unused calIObserver.onAlarm, r=dmose
This commit is contained in:
parent
ba8e59ec91
commit
33ca8e93d3
@ -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) { },
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -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) { },
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -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 );
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -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) { }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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 =
|
||||||
|
@ -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) { }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -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)
|
||||||
{
|
{
|
||||||
},
|
},
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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.
|
||||||
|
@ -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) { }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -225,7 +225,6 @@ var unifinderObserver = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
onAlarm: function(aAlarmItem) {},
|
|
||||||
onError: function(aErrNo, aMessage) {},
|
onError: function(aErrNo, aMessage) {},
|
||||||
|
|
||||||
// calICompositeObserver:
|
// calICompositeObserver:
|
||||||
|
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user