]> git.sur5r.net Git - openldap/commitdiff
remove deadwood, e.g. slap_index2prefix()
authorKurt Zeilenga <kurt@openldap.org>
Thu, 31 Jan 2002 00:11:44 +0000 (00:11 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 31 Jan 2002 00:11:44 +0000 (00:11 +0000)
servers/slapd/index.c
servers/slapd/proto-slap.h
servers/slapd/slap.h

index 6d68292906e29bb4a6d02f2bef8dd0cd985cc907..a3b1032f5c6ce03de047c867350c0d36e5b0437f 100644 (file)
 
 #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 ) {
index e54a8c933ff81227b7d3e4822d7f59467a7b9ce8..8c520dc30d649c40c1241b81a2edac6c766c58e3 100644 (file)
@@ -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 ));
 
 /*
index f4a12d4f73671737fbfda6e9690f16f8a44f1a0b..951f47f8355cc1aa4dea021846555ab0a1384d19 100644 (file)
@@ -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"