custom-attrs.c:269:1: warning: 'load_cattr_type_object' defined but not used [-Wunuse...
authorJay Krell <jaykrell@microsoft.com>
Thu, 13 Jun 2019 08:30:50 +0000 (01:30 -0700)
committerLarry Ewing <lewing@microsoft.com>
Tue, 18 Jun 2019 02:53:08 +0000 (21:53 -0500)
 load_cattr_type_object (MonoImage *image, MonoType *t, gboolean header, const char *p, const char *boundp, const char **end, MonoError *error, guint32 *slen)
 ^~~~~~~~~~~~~~~~~~~~~~

Commit migrated from https://github.com/mono/mono/commit/f2f5c45d9d7255800f08d19ee397efff681c5da4

src/mono/mono/metadata/custom-attrs.c

index 61afd21..7a4ffb6 100644 (file)
@@ -265,17 +265,6 @@ MONO_RESTORE_WARNING
        return res;
 }
 
-static MonoReflectionType*
-load_cattr_type_object (MonoImage *image, MonoType *t, gboolean header, const char *p, const char *boundp, const char **end, MonoError *error, guint32 *slen)
-{
-       MonoType *type;
-
-       type = load_cattr_type (image, t, header, p, boundp, end, error, slen);
-       if (!type)
-               return NULL;
-       return mono_type_get_object_checked (mono_domain_get (), type, error);
-}
-
 /*
  * If OUT_OBJ is non-NULL, created objects are stored into it and NULL is returned.
  * If OUT_OBJ is NULL, assert if objects were to be created.