From 057dda50d3e7206c286d29e5b270f30466f331d1 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Thu, 31 Jan 2002 00:11:44 +0000 Subject: [PATCH] remove deadwood, e.g. slap_index2prefix() --- servers/slapd/index.c | 23 ----------------------- servers/slapd/proto-slap.h | 1 - servers/slapd/slap.h | 1 - 3 files changed, 25 deletions(-) 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" -- 2.39.5