From: Andre Noll <maan@systemlinux.org>
Date: Sat, 31 May 2008 15:14:02 +0000 (+0200)
Subject: Kill uint32_compare().
X-Git-Tag: v0.1.0~95
X-Git-Url: https://git.tuebingen.mpg.de/?a=commitdiff_plain;h=8f8ea26e0fb2fcc1fbe584f6e7fe3b9b6199d555;p=osl.git

Kill uint32_compare().

The user of the library might as well provide this.
---

diff --git a/osl.c b/osl.c
index cce01aa..e1b535c 100644
--- a/osl.c
+++ b/osl.c
@@ -82,6 +82,7 @@ static const unsigned int errmsgidx[] = {
 #include "errtab.h"
 #undef _S
 };
+
 __export const char *osl_strerror(int num)
 {
 	if (IS_SYSTEM_ERROR(num))
@@ -271,28 +272,6 @@ static int verify_name(const char *name)
 	return 1;
 }
 
-/**
- * Compare two osl objects pointing to unsigned integers of 32 bit size.
- *
- * \param obj1 Pointer to the first integer.
- * \param obj2 Pointer to the second integer.
- *
- * \return The values required for an osl compare function.
- *
- * \sa osl_compare_func, osl_hash_compare().
- */
-int uint32_compare(const struct osl_object *obj1, const struct osl_object *obj2)
-{
-	uint32_t d1 = read_u32((const char *)obj1->data);
-	uint32_t d2 = read_u32((const char *)obj2->data);
-
-	if (d1 < d2)
-		return 1;
-	if (d1 > d2)
-		return -1;
-	return 0;
-}
-
 /**
  * Compare two osl objects pointing to hash values.
  *