From 788c265bab8100af876e2c73f6540caadbb77fef Mon Sep 17 00:00:00 2001 From: "dmose%mozilla.org" Date: Wed, 10 Aug 2005 23:05:35 +0000 Subject: [PATCH] Make it possible to move or delete non-recurring events in the memory (and therefore ICS) providers (bug 303988); r=vlad. Not part of the build. --- calendar/providers/memory/calMemoryCalendar.js | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/calendar/providers/memory/calMemoryCalendar.js b/calendar/providers/memory/calMemoryCalendar.js index 1670055c382..53880746d64 100644 --- a/calendar/providers/memory/calMemoryCalendar.js +++ b/calendar/providers/memory/calMemoryCalendar.js @@ -59,15 +59,6 @@ function calMemoryCalendar() { this.initMemoryCalendar(); } -function makeOccurrence(item, start, end) -{ - var occ = item.createProxy(); - occ.recurrenceId = start; - occ.startDate = start; - occ.endDate = end; - return occ; -} - // END_OF_TIME needs to be the max value a PRTime can be const START_OF_TIME = -0x7fffffffffffffff; const END_OF_TIME = 0x7fffffffffffffff; @@ -424,12 +415,7 @@ calMemoryCalendar.prototype = { var recs = item.recurrenceInfo.getOccurrences (aRangeStart, aRangeEnd, 0, {}); itemsFound = itemsFound.concat(recs); } else if (itemEndTime >= startTime) { - // no occurrences - if (itemReturnOccurrences) - itemtoadd = makeOccurrence(item, item.startDate, item.endDate); - else - itemtoadd = item; - itemsFound.push(itemtoadd); + itemsFound.push(item); } }