summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/util/data_blob.c17
-rw-r--r--lib/util/data_blob.h6
2 files changed, 0 insertions, 23 deletions
diff --git a/lib/util/data_blob.c b/lib/util/data_blob.c
index 6e7557f8ef..3448e94316 100644
--- a/lib/util/data_blob.c
+++ b/lib/util/data_blob.c
@@ -67,23 +67,6 @@ _PUBLIC_ DATA_BLOB data_blob_talloc_named(TALLOC_CTX *mem_ctx, const void *p, si
return ret;
}
-
-/**
- reference a data blob, to the supplied TALLOC_CTX.
- Returns a NULL DATA_BLOB on failure
-**/
-_PUBLIC_ DATA_BLOB data_blob_talloc_reference(TALLOC_CTX *mem_ctx, DATA_BLOB *blob)
-{
- DATA_BLOB ret = *blob;
-
- ret.data = talloc_reference(mem_ctx, blob->data);
-
- if (!ret.data) {
- return data_blob(NULL, 0);
- }
- return ret;
-}
-
/**
construct a zero data blob, using supplied TALLOC_CTX.
use this sparingly as it initialises data - better to initialise
diff --git a/lib/util/data_blob.h b/lib/util/data_blob.h
index c294533960..83e6cd5f09 100644
--- a/lib/util/data_blob.h
+++ b/lib/util/data_blob.h
@@ -61,12 +61,6 @@ _PUBLIC_ DATA_BLOB data_blob_named(const void *p, size_t length, const char *nam
_PUBLIC_ DATA_BLOB data_blob_talloc_named(TALLOC_CTX *mem_ctx, const void *p, size_t length, const char *name);
/**
- reference a data blob, to the supplied TALLOC_CTX.
- Returns a NULL DATA_BLOB on failure
-**/
-_PUBLIC_ DATA_BLOB data_blob_talloc_reference(TALLOC_CTX *mem_ctx, DATA_BLOB *blob);
-
-/**
construct a zero data blob, using supplied TALLOC_CTX.
use this sparingly as it initialises data - better to initialise
yourself if you want specific data in the blob