Unused function clear_history() provisionally removed
authorZdeněk Šustr <sustr4@cesnet.cz>
Thu, 23 Aug 2012 14:29:34 +0000 (14:29 +0000)
committerZdeněk Šustr <sustr4@cesnet.cz>
Thu, 23 Aug 2012 14:29:34 +0000 (14:29 +0000)
org.glite.lb.server/src/jobstat.c
org.glite.lb.server/src/jobstat.h

index 89b82e6..5769772 100644 (file)
@@ -180,17 +180,15 @@ int collate_history(edg_wll_Context ctx, edg_wll_JobStat *stat, edg_wll_Event* e
         return edg_wll_Error(ctx, NULL, NULL);
 }
 
-
-int clear_history(edg_wll_Context ctx, edg_wll_Event* events) {
-        int i;
-
-        for (i = 0; events && events[i].type; i++)
-                edg_wll_FreeEvent(&events[i]);
-        free(events);
-
-        return edg_wll_Error(ctx, NULL, NULL);
-}
-
+//int clear_history(edg_wll_Context ctx, edg_wll_Event* events) {
+//        int i;
+//
+//        for (i = 0; events && events[i].type; i++)
+//                edg_wll_FreeEvent(&events[i]);
+//        free(events);
+//
+//       return edg_wll_Error(ctx, NULL, NULL);
+//}
 
 int edg_wll_JobStatusServer(
        edg_wll_Context ctx,
index b1322a2..04682a7 100644 (file)
@@ -71,7 +71,7 @@ edg_wll_ErrorCode edg_wll_StoreSubjobHistogram(edg_wll_Context, glite_jobid_cons
 
 edg_wll_Event* fetch_history(edg_wll_Context ctx, edg_wll_JobStat *stat);
 int collate_history(edg_wll_Context ctx, edg_wll_JobStat *stat, edg_wll_Event* events, int authz_flags);
-int clear_history();
+//int clear_history();
 
 
 #endif /* GLITE_LB_LBS_JOBSTAT_H*/