From 46368f46f38f02c06c1cf7e0f51b189ccab987c1 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Thu, 7 Jul 2011 11:26:38 +0200 Subject: [PATCH] Small cleanup --- headers/private/file_systems/QueryParser.h | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/headers/private/file_systems/QueryParser.h b/headers/private/file_systems/QueryParser.h index 774d7857a8..dce381927d 100644 --- a/headers/private/file_systems/QueryParser.h +++ b/headers/private/file_systems/QueryParser.h @@ -404,10 +404,8 @@ skipWhitespaceReverse(char** expr, char* stop) } -// compare_integral template -static inline -int +static inline int compare_integral(const Key &a, const Key &b) { if (a < b) @@ -417,11 +415,10 @@ compare_integral(const Key &a, const Key &b) return 0; } -// compare_keys -static -int -compare_keys(const uint8 *key1, size_t length1, const uint8 *key2, - size_t length2, uint32 type) + +static inline int +compareKeys(uint32 type, const uint8* key1, size_t length1, const uint8* key2, + size_t length2) { switch (type) { case B_INT32_TYPE: @@ -450,15 +447,6 @@ compare_keys(const uint8 *key1, size_t length1, const uint8 *key2, return -1; } -// compareKeys -static inline -int -compareKeys(uint32 type, const uint8 *key1, size_t length1, const uint8 *key2, - size_t length2) -{ - return compare_keys(key1, length1, key2, length2, type); -} - // #pragma mark -