зеркало из https://github.com/mozilla/gecko-dev.git
Bug 329347: remove old debug statements. patch by gekacheka@yahoo.com, r=mvl
This commit is contained in:
Родитель
3b6286fcaa
Коммит
84fbd99c0f
|
@ -239,8 +239,6 @@ function findPeriodForItem(item)
|
|||
if (start.compare(this.soon.end) == -1)
|
||||
return this.soon;
|
||||
|
||||
void(item.title + " @ " + start + " not in range " +
|
||||
"(" + this.today.start + " - " + this.soon.end + ")\n");
|
||||
|
||||
return null;
|
||||
};
|
||||
|
@ -251,7 +249,6 @@ function addItem(item)
|
|||
var when = this.findPeriodForItem(item);
|
||||
if (!when)
|
||||
return;
|
||||
void(item.title + " @ " + item.occurrenceStartDate + " -> " + when.title + "\n");
|
||||
when.events.push(item);
|
||||
this.calendarUpdateComplete();
|
||||
};
|
||||
|
@ -294,12 +291,9 @@ function deleteItem(item)
|
|||
{
|
||||
var when = this.findPeriodForItem(item);
|
||||
if (!when) {
|
||||
void("deleting non-binned item " + item + "\n");
|
||||
return;
|
||||
}
|
||||
|
||||
void("deleting item " + item + " from " + when.title + "\n");
|
||||
void("before: " + when.events.map(function (e) { return e.title; }).join(" ") + "\n");
|
||||
when.events = when.events.filter(function (e) {
|
||||
if (e.id != item.id)
|
||||
return true;
|
||||
|
@ -308,7 +302,6 @@ function deleteItem(item)
|
|||
return true;
|
||||
return false;
|
||||
});
|
||||
void("after: " + when.events.map(function (e) { return e.title; }).join(" ") + "\n");
|
||||
this.rebuildAgendaView(true);
|
||||
};
|
||||
|
||||
|
@ -370,7 +363,6 @@ function refreshCalendarQuery()
|
|||
this.periods.forEach(function (p) { p.events = []; });
|
||||
this.calendar.getItems(filter, 0, this.today.start, this.soon.end,
|
||||
this.calendarOpListener);
|
||||
void("Calendar query started (" + this.today.start + " -> " + this.soon.end + ")\n");
|
||||
};
|
||||
|
||||
agendaTreeView.updateFilter =
|
||||
|
@ -407,9 +399,6 @@ function refreshPeriodDates()
|
|||
d.normalize();
|
||||
this.soon.end = d.clone();
|
||||
|
||||
this.periods.forEach(function (when) {
|
||||
void(when.title + ": " + when.start + " -> " + when.end + "\n");
|
||||
});
|
||||
this.refreshCalendarQuery();
|
||||
};
|
||||
|
||||
|
@ -454,7 +443,6 @@ agendaTreeView.calendarObserver.onError = function(errno, msg) {};
|
|||
agendaTreeView.setCalendar =
|
||||
function setCalendar(calendar)
|
||||
{
|
||||
void("periods: " + this.periods + "\n");
|
||||
if (this.calendar)
|
||||
this.calendar.removeObserver(this.calendarObserver);
|
||||
this.calendar = calendar;
|
||||
|
|
Загрузка…
Ссылка в новой задаче