--- parser3/src/classes/math.C 2007/08/20 10:37:21 1.51 +++ parser3/src/classes/math.C 2008/06/16 12:38:41 1.53 @@ -8,7 +8,7 @@ Copyright (C) 1996, 1997, 1998, 1999 Theodore Ts'o. */ -static const char * const IDENT_MATH_C="$Date: 2007/08/20 10:37:21 $"; +static const char * const IDENT_MATH_C="$Date: 2008/06/16 12:38:41 $"; #include "pa_vmethod_frame.h" #include "pa_common.h" @@ -491,20 +491,6 @@ static void _crc32(Request& r, MethodPar r.write_no_lang(*new VInt(pa_crc32(string, strlen(string)))); } -static void _long2ip(Request& r, MethodParams& params) { - unsigned long l=(unsigned long)trunc(params.as_double(0, "parameter must be expression", r)); - static const int ip_cstr_bufsize=15+1+1; - char* ip_cstr=new(PointerFreeGC) char[ip_cstr_bufsize]; - - snprintf(ip_cstr, ip_cstr_bufsize, "%d.%d.%d.%d", - (l>>24) & 0xFF, - (l>>16) & 0xFF, - (l>>8) & 0xFF, - l & 0xFF); - - r.write_no_lang(*new String(ip_cstr)); -} - // constructor MMath::MMath(): Methoded("math") { @@ -542,8 +528,6 @@ MMath::MMath(): Methoded("math") { // ^math:crc32[string] ADD1(crc32); - ADD1(long2ip); - // ^math:uuid[] ADD0(uuid);