From: Jay Krell Date: Thu, 13 Jun 2019 08:30:50 +0000 (-0700) Subject: custom-attrs.c:269:1: warning: 'load_cattr_type_object' defined but not used [-Wunuse... X-Git-Tag: submit/tizen/20210909.063632~10331^2~5^2~1152 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c1b9e37c38d63710135ecc5f66d4258eae18f941;p=platform%2Fupstream%2Fdotnet%2Fruntime.git custom-attrs.c:269:1: warning: 'load_cattr_type_object' defined but not used [-Wunused-function] 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 --- diff --git a/src/mono/mono/metadata/custom-attrs.c b/src/mono/mono/metadata/custom-attrs.c index 61afd21..7a4ffb6 100644 --- a/src/mono/mono/metadata/custom-attrs.c +++ b/src/mono/mono/metadata/custom-attrs.c @@ -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.