From 0ca0ea1343d9c13f3fdf0124c7437e9d3b7c136f Mon Sep 17 00:00:00 2001 From: Robert Baldyga Date: Tue, 30 Jul 2019 09:19:19 +0200 Subject: [PATCH] Remove ocf_metadata_line_size_is_valid() This function is no longer used. Signed-off-by: Robert Baldyga --- src/metadata/metadata.h | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/metadata/metadata.h b/src/metadata/metadata.h index 1ac452c..7893fed 100644 --- a/src/metadata/metadata.h +++ b/src/metadata/metadata.h @@ -207,24 +207,4 @@ typedef void (*ocf_metadata_load_properties_end_t)(void *priv, int error, void ocf_metadata_load_properties(ocf_volume_t volume, ocf_metadata_load_properties_end_t cmpl, void *priv); -/** - * @brief Validate cache line size - * - * @param size Cache line size - * @return true - cache line size is valid, false - cache line is invalid - */ -static inline bool ocf_metadata_line_size_is_valid(uint32_t size) -{ - switch (size) { - case 4 * KiB: - case 8 * KiB: - case 16 * KiB: - case 32 * KiB: - case 64 * KiB: - return true; - default: - return false; - } -} - #endif /* METADATA_H_ */