Imported Upstream version 0.66.1
[hcoop/debian/courier-authlib.git] / bdbobj / bdbobj3.c
diff --git a/bdbobj/bdbobj3.c b/bdbobj/bdbobj3.c
deleted file mode 100644 (file)
index bce8392..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
-** Copyright 1998 - 1999 Double Precision, Inc.  See COPYING for
-** distribution information.
-*/
-
-#include       <string.h>
-#include       <stdlib.h>
-#include       "bdbobj.h"
-
-int    bdbobj_delete(struct bdbobj *obj, const char *key, size_t keylen)
-{
-DBT    dkey, val;
-
-       if (!obj->has_dbf)      return (0);
-
-       memset(&dkey, 0, sizeof(dkey));
-       memset(&val, 0, sizeof(val));
-       dkey.data=(void *)key;
-       dkey.size=keylen;
-
-#if    DB_VERSION_MAJOR < 2
-       if ( (*obj->dbf->del)(obj->dbf, &dkey, 0))      return (-1);
-#else
-       if ( (*obj->dbf->del)(obj->dbf, 0, &dkey, 0))   return (-1);
-#endif
-       return (0);
-}