From da2b236902f842903bd7643e824454eff286a15d Mon Sep 17 00:00:00 2001 From: chenzizhan Date: Thu, 4 Jul 2024 15:05:36 +0800 Subject: move cube manager to cube.c; cube manager is now a bidict --- include/fieldstat/fieldstat.h | 9 --------- 1 file changed, 9 deletions(-) (limited to 'include') diff --git a/include/fieldstat/fieldstat.h b/include/fieldstat/fieldstat.h index a6101a8..93ac2b8 100644 --- a/include/fieldstat/fieldstat.h +++ b/include/fieldstat/fieldstat.h @@ -84,11 +84,6 @@ int fieldstat_cube_set_primary_metric(struct fieldstat *instance, int cube_id, i */ int fieldstat_destroy_cube(struct fieldstat *instance, int cube_id); -/* - * @brief get the cube_version of the cube of cube_id. - * @return cube_version if success. FS_ERR_NULL_HANDLER or FS_ERR_INVALID_CUBE_ID if fail. -*/ -long long fieldstat_get_cube_version(const struct fieldstat *instance, int cube_id); /* * @brief add a metric to the cube of cube_id. One metric may be associated with different cells. * @param metric_name: name of the metric. Cannot be NULL. Must be unique. @@ -158,10 +153,6 @@ int fieldstat_hist_record(struct fieldstat *instance, int cube_id, int metric_id Note that the cell record won't be deleted at once, they just seem to be deleted. The cell record will be deleted when they are not used since the last reset and until the next reset. */ void fieldstat_reset(struct fieldstat *instance); -/* - version is increased by 1 when we call fieldstat_reset. -*/ -unsigned long fieldstat_get_version(const struct fieldstat *instance); /* @brief Merge the instance. The registered cubes and metrics are merged even if there are no cells added. -- cgit v1.2.3