X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fical_subst.c;h=adb923882994665fdf53883134a02ebc672ccf77;hb=d68dd1822dfd2c7efc8e46cd23483488f3cbac04;hp=420b2e71f7401da22085e7e16f9e4416e1811447;hpb=7d67da44c7fe90bcf5b577ed444c28009ef5ea71;p=citadel.git diff --git a/webcit/ical_subst.c b/webcit/ical_subst.c index 420b2e71f..adb923882 100644 --- a/webcit/ical_subst.c +++ b/webcit/ical_subst.c @@ -22,64 +22,6 @@ CtxType CTX_ICALMETHOD = CTX_NONE; CtxType CTX_ICALTIME = CTX_NONE; CtxType CTX_ICALATTENDEE = CTX_NONE; CtxType CTX_ICALCONFLICT = CTX_NONE; -#if 0 -void SortPregetMatter(HashList *Cals) -{ - disp_cal *Cal; - void *vCal; - const char *Key; - long KLen; - IcalEnumMap *SortMap[10]; - IcalEnumMap *Map; - void *vSort; - const char *Next = NULL; - const StrBuf *SortVector; - StrBuf *SortBy; - int i = 0; - HashPos *It; - - SortVector = SBSTR("ICALSortVec"); - if (SortVector == NULL) - return; - - for (i = 0; i < 10; i++) SortMap[i] = NULL; - SortBy = NewStrBuf(); - while (StrBufExtract_NextToken(SortBy, SortVector, &Next, ':') > 0) { - GetHash(IcalComponentMap, SKEY(SortBy), &vSort); - Map = (IcalEnumMap*) vSort; - SortMap[i] = Map; - i++; - if (i > 9) - break; - } - - if (i == 0) - return; - - switch (SortMap[i - 1]->map) { - /* case */ - - default: - break; - } - - It = GetNewHashPos(Cals, 0); - while (GetNextHashPos(Cals, It, &KLen, &Key, &vCal)) { - i = 0; - Cal = (disp_cal*) vCal; - Cal->Status = icalcomponent_get_status(Cal->cal); - Cal->SortBy = Cal->cal; - - - while ((SortMap[i] != NULL) && - (Cal->SortBy != NULL)) - { - /****Cal->SortBy = icalcomponent_get_first_property(Cal->SortBy, SortMap[i++]->map); */ - } - } -} -#endif - void tmplput_ICalItem(StrBuf *Target, WCTemplputParams *TP) {