rem:  var calId = cal.calId; var url = this.getCommandUrl("deletecalendar"); 
add: this.assureLoggedIn(); var url = this.getCommandUrl( "deletecalendar" ); url += ("&unsubscribe=" + (bRemoveFromSubscribed ? "1" : "0")); 
context:     deleteCalendar:    function( cal )    {        try {//             this.assureLoggedIn();            var calId = cal.calId;            var url = this.getCommandUrl("deletecalendar");            url += ("&calid=" + encodeURIComponent(calId));            url += "&unsubscribe=1&fmt-out=text%2Fxml";            this.issueSyncRequest(url, stringToXml);            this.m_userPrefs = null; // reread prefs            // xxx todo: delete here?            this.m_calIdToCalendar[encodeURIComponent(calId)] = null;            cal.readOnly = true;        }        catch (exc) {            this.logError(exc);            throw exc;        }    },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/9484cd5028816c4e1bd9dd2ed1d9d090116e32ad/calWcapSession.js/clean/calendar/providers/wcap/calWcapSession.js