From: Kurt Zeilenga Date: Thu, 31 Jan 2002 00:11:44 +0000 (+0000) Subject: remove deadwood, e.g. slap_index2prefix() X-Git-Tag: OPENLDAP_REL_ENG_2_1_BP~114 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=057dda50d3e7206c286d29e5b270f30466f331d1;p=openldap remove deadwood, e.g. slap_index2prefix() --- diff --git a/servers/slapd/index.c b/servers/slapd/index.c index 6d68292906..a3b1032f5c 100644 --- a/servers/slapd/index.c +++ b/servers/slapd/index.c @@ -11,29 +11,6 @@ #include "slap.h" -int -slap_index2prefix( int indextype ) -{ - int prefix; - - switch ( indextype ) { - case SLAP_INDEX_EQUALITY: - prefix = SLAP_INDEX_EQUALITY_PREFIX; - break; - case SLAP_INDEX_APPROX: - prefix = SLAP_INDEX_APPROX_PREFIX; - break; - case SLAP_INDEX_SUBSTR: - prefix = SLAP_INDEX_SUBSTR_PREFIX; - break; - default: - prefix = SLAP_INDEX_UNKNOWN_PREFIX; - break; - } - - return( prefix ); -} - int slap_str2index( const char *str, slap_mask_t *idx ) { if ( strcasecmp( str, "pres" ) == 0 ) { diff --git a/servers/slapd/proto-slap.h b/servers/slapd/proto-slap.h index e54a8c933f..8c520dc30d 100644 --- a/servers/slapd/proto-slap.h +++ b/servers/slapd/proto-slap.h @@ -477,7 +477,6 @@ LDAP_SLAPD_F (int) test_filter LDAP_P(( /* * index.c */ -LDAP_SLAPD_F (int) slap_index2prefix LDAP_P(( int indextype )); LDAP_SLAPD_F (int) slap_str2index LDAP_P(( const char *str, slap_mask_t *idx )); /* diff --git a/servers/slapd/slap.h b/servers/slapd/slap.h index f4a12d4f73..951f47f835 100644 --- a/servers/slapd/slap.h +++ b/servers/slapd/slap.h @@ -206,7 +206,6 @@ typedef struct slap_ssf_set { #define SLAP_INDEX_SUBSTR_INITIAL_PREFIX '^' #define SLAP_INDEX_SUBSTR_FINAL_PREFIX '$' #define SLAP_INDEX_CONT_PREFIX '.' /* prefix for continuation keys */ -#define SLAP_INDEX_UNKNOWN_PREFIX '?' /* prefix for unknown keys */ #define SLAP_SYNTAX_MATCHINGRULES_OID "1.3.6.1.4.1.1466.115.121.1.30" #define SLAP_SYNTAX_ATTRIBUTETYPES_OID "1.3.6.1.4.1.1466.115.121.1.3"