From b67e973d1e33a19d5ceeb6d6ffa925d9846adb62 Mon Sep 17 00:00:00 2001 From: alexpeshkoff Date: Mon, 25 Jan 2010 11:37:50 +0000 Subject: [PATCH] cleanup - noticed by Adriano --- src/jrd/scl.epp | 37 ------------------------------------- 1 file changed, 37 deletions(-) diff --git a/src/jrd/scl.epp b/src/jrd/scl.epp index caae49bb09..1a46b40430 100644 --- a/src/jrd/scl.epp +++ b/src/jrd/scl.epp @@ -67,7 +67,6 @@ using namespace Firebird; DATABASE DB = FILENAME "ODS.RDB"; -static bool check_hex(const UCHAR*, USHORT); static bool check_number(const UCHAR*, USHORT); static bool check_user_group(thread_db* tdbb, const UCHAR*, USHORT); static bool check_string(const UCHAR*, const Firebird::MetaName&); @@ -934,42 +933,6 @@ void SCL_release_all(SecurityClassList*& list) } -static bool check_hex(const UCHAR* acl, USHORT number) -{ -/************************************** - * - * c h e c k _ h e x - * - ************************************** - * - * Functional description - * Check a string against and acl numeric string. If they don't match, - * return true. - * - **************************************/ - int n = 0; - USHORT l = *acl++; - if (l) - { - do { - const TEXT c = *acl++; - n *= 10; - if (c >= '0' && c <= '9') { - n += c - '0'; - } - else if (c >= 'a' && c <= 'f') { - n += c - 'a' + 10; - } - else if (c >= 'A' && c <= 'F') { - n += c - 'A' + 10; - } - } while (--l); - } - - return (n != number); -} - - static bool check_number(const UCHAR* acl, USHORT number) { /**************************************