removed a bunch of blank comment lines
[citadel.git] / webcit / ical_subst.c
index 8d44830fea2aececc8dac3b87d48887b73b5bd8f..852fcc87b03aac7e97297b51e6263616267790fa 100644 (file)
@@ -1,11 +1,22 @@
-#include "webcit.h"
+/*
+ * Copyright (c) 1996-2012 by the citadel.org team
+ *
+ * This program is open source software.  You can redistribute it and/or
+ * modify it under the terms of the GNU General Public License, version 3.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
 
+#include "webcit.h"
 
 extern IcalEnumMap icalproperty_kind_map[];
 
-
 HashList *IcalComponentMap = NULL;
 
+#if 0
 void SortPregetMatter(HashList *Cals)
 {
        disp_cal *Cal;
@@ -46,7 +57,6 @@ void SortPregetMatter(HashList *Cals)
                break;
        }
 
-
        It = GetNewHashPos(Cals, 0);
        while (GetNextHashPos(Cals, It, &KLen, &Key, &vCal)) {
                i = 0;
@@ -58,12 +68,11 @@ void SortPregetMatter(HashList *Cals)
                while ((SortMap[i] != NULL) && 
                       (Cal->SortBy != NULL)) 
                {
-                       Cal->SortBy = icalcomponent_get_first_property(Cal->SortBy, SortMap[i++]->map);
+                       /****Cal->SortBy = icalcomponent_get_first_property(Cal->SortBy, SortMap[i++]->map); */
                }
        }
-       
-               
 }
+#endif
 
 
 void tmplput_ICalItem(StrBuf *Target, WCTemplputParams *TP)
@@ -82,6 +91,7 @@ void CreateIcalComponendKindLookup(void)
                           0, 
                           10, 
                           tmplput_ICalItem,
+                          NULL, 
                           CTX_ICAL);
                Put(IcalComponentMap, 
                    icalproperty_kind_map[i].Name, 
@@ -116,3 +126,10 @@ InitModule_ICAL_SUBST
        CreateIcalComponendKindLookup ();
 
 }
+
+void 
+ServerShutdownModule_ICAL
+(void)
+{
+       DeleteHash(&IcalComponentMap);
+}