Drop DEFINE_STACK_OF.
We never need to define the actual structs because we always cast them
before use. The types only exist to be distinct, and they can do that
without a definition.
Change-Id: I1e1ca0833b383f3be422675cb7b90dacbaf82acf
Reviewed-on: https://boringssl-review.googlesource.com/5593
Reviewed-by: David Benjamin <davidben@chromium.org>
Reviewed-by: Adam Langley <agl@google.com>
diff --git a/include/openssl/asn1.h b/include/openssl/asn1.h
index 023f7bc..401532a 100644
--- a/include/openssl/asn1.h
+++ b/include/openssl/asn1.h
@@ -515,7 +515,6 @@
ASN1_OBJECT *algorithm;
ASN1_TYPE *parameter;
} /* X509_ALGOR */;
-DEFINE_STACK_OF(X509_ALGOR);
DECLARE_ASN1_FUNCTIONS(X509_ALGOR)
diff --git a/include/openssl/bio.h b/include/openssl/bio.h
index 9b0bfa2..a3c1f62 100644
--- a/include/openssl/bio.h
+++ b/include/openssl/bio.h
@@ -76,8 +76,6 @@
/* Allocation and freeing. */
-DEFINE_STACK_OF(BIO);
-
/* BIO_new creates a new BIO with the given type and a reference count of one.
* It returns the fresh |BIO|, or NULL on error. */
OPENSSL_EXPORT BIO *BIO_new(const BIO_METHOD *type);
diff --git a/include/openssl/stack.h b/include/openssl/stack.h
index 36a0397..b600b43 100644
--- a/include/openssl/stack.h
+++ b/include/openssl/stack.h
@@ -111,11 +111,6 @@
#define STACK_OF(type) struct stack_st_##type
-#define DEFINE_STACK_OF(type) \
-STACK_OF(type) {\
- _STACK stack; \
-}
-
#define DECLARE_STACK_OF(type) STACK_OF(type);
/* The make_macros.sh script in this directory parses the following lines and