(trunk gtk) gtr_compare_double() is only used in one place, so make it a private function there instead of leaving it public in utils.h

This commit is contained in:
Jordan Lee
2011-03-24 18:32:05 +00:00
parent a891136602
commit 433da8df9a
3 changed files with 11 additions and 18 deletions

View File

@@ -12,7 +12,6 @@
#include <ctype.h> /* isxdigit() */
#include <errno.h>
#include <math.h> /* pow() */
#include <stdarg.h>
#include <stdlib.h> /* free() */
#include <string.h> /* strcmp() */
@@ -115,20 +114,6 @@ gtr_lockfile( const char * filename )
****
***/
int
gtr_compare_double( const double a, const double b, int decimal_places )
{
const int64_t ia = (int64_t)(a * pow( 10, decimal_places ) );
const int64_t ib = (int64_t)(b * pow( 10, decimal_places ) );
if( ia < ib ) return -1;
if( ia > ib ) return 1;
return 0;
}
/***
****
***/
const char*
gtr_get_unicode_string( int i )
{