]> git.sur5r.net Git - openldap/commitdiff
unifdef old code
authorHoward Chu <hyc@openldap.org>
Fri, 2 Jul 2004 12:06:03 +0000 (12:06 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 2 Jul 2004 12:06:03 +0000 (12:06 +0000)
servers/slapd/backover.c

index bcaa0cef3f7d6ed912f1cc0b7ad073067fa8c3ff..1b490825ed7c8fe0f60b3180851801d8e965af08 100644 (file)
@@ -388,21 +388,6 @@ overlay_config( BackendDB *be, const char *ov )
                oi = be->bd_info->bi_private;
        }
 
-#if 0
-       /* Walk to the end of the list of overlays, add the new
-        * one onto the end
-        */
-       for ( prev=NULL, on2 = oi->oi_list; on2; prev=on2, on2=on2->on_next );
-       on2 = ch_calloc( 1, sizeof(slap_overinst) );
-       if ( !prev ) {
-               oi->oi_list = on2;
-       } else {
-               prev->on_next = on2;
-       }
-       *on2 = *on;
-       on2->on_next = NULL;
-       on2->on_info = oi;
-#else
        /* Insert new overlay on head of list. Overlays are executed
         * in reverse of config order...
         */
@@ -411,7 +396,6 @@ overlay_config( BackendDB *be, const char *ov )
        on2->on_info = oi;
        on2->on_next = oi->oi_list;
        oi->oi_list = on2;
-#endif
 
        /* Any initialization needed? */
        if ( on->on_bi.bi_db_init ) {