Skip to content

Commit

Permalink
Address feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
grendello committed Oct 31, 2024
1 parent 04b4ab8 commit 0167776
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 48 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,6 @@ static partial void AddManualMapping ()

public static ApplicationAttribute FromCustomAttributeProvider (ICustomAttributeProvider provider, TypeDefinitionCache cache)
{
// `provider` might be null in situations when application configuration is broken, and it surfaces in a number of
// tests which check these situations.
if (provider == null) {
return null;
}

CustomAttribute attr = provider.GetCustomAttributes ("Android.App.ApplicationAttribute")
.SingleOrDefault ();
if (attr == null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@ partial class InstrumentationAttribute {

public static IEnumerable<InstrumentationAttribute> FromCustomAttributeProvider (ICustomAttributeProvider provider, TypeDefinitionCache cache)
{
// `provider` might be null in situations when application configuration is broken, and it surfaces in a number of
// tests which check these situations.
if (provider == null) {
yield break;
}

foreach (CustomAttribute attr in provider.GetCustomAttributes ("Android.App.InstrumentationAttribute")) {
InstrumentationAttribute self = new InstrumentationAttribute ();
self.specified = mapping.Load (self, attr, cache);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,6 @@ partial class PermissionAttribute {

public static IEnumerable<PermissionAttribute> FromCustomAttributeProvider (ICustomAttributeProvider provider, TypeDefinitionCache cache)
{
// `provider` might be null in situations when application configuration is broken, and it surfaces in a number of
// tests which check these situations.
if (provider == null) {
yield break;
}

var attrs = provider.GetCustomAttributes ("Android.App.PermissionAttribute");
foreach (var attr in attrs) {
PermissionAttribute self = new PermissionAttribute ();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,6 @@ partial class PermissionGroupAttribute {

public static IEnumerable<PermissionGroupAttribute> FromCustomAttributeProvider (ICustomAttributeProvider provider, TypeDefinitionCache cache)
{
// `provider` might be null in situations when application configuration is broken, and it surfaces in a number of
// tests which check these situations.
if (provider == null) {
yield break;
}

var attrs = provider.GetCustomAttributes ("Android.App.PermissionGroupAttribute");
foreach (var attr in attrs) {
PermissionGroupAttribute self = new PermissionGroupAttribute ();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,6 @@ partial class PermissionTreeAttribute {

public static IEnumerable<PermissionTreeAttribute> FromCustomAttributeProvider (ICustomAttributeProvider provider, TypeDefinitionCache cache)
{
// `provider` might be null in situations when application configuration is broken, and it surfaces in a number of
// tests which check these situations.
if (provider == null) {
yield break;
}

var attrs = provider.GetCustomAttributes ("Android.App.PermissionTreeAttribute");
foreach (var attr in attrs) {
PermissionTreeAttribute self = new PermissionTreeAttribute ();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,6 @@ internal XElement ToElement (string packageName, TypeDefinitionCache cache)

public static IEnumerable<SupportsGLTextureAttribute> FromCustomAttributeProvider (ICustomAttributeProvider provider, TypeDefinitionCache cache)
{
// `provider` might be null in situations when application configuration is broken, and it surfaces in a number of
// tests which check these situations.
if (provider == null) {
yield break;
}

var attrs = provider.GetCustomAttributes ("Android.App.SupportsGLTextureAttribute");
foreach (var attr in attrs) {
if (attr.HasConstructorArguments && attr.ConstructorArguments.Count == 1) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,6 @@ internal XElement ToElement (string packageName, TypeDefinitionCache cache)

public static IEnumerable<UsesFeatureAttribute> FromCustomAttributeProvider (ICustomAttributeProvider provider, TypeDefinitionCache cache)
{
// `provider` might be null in situations when application configuration is broken, and it surfaces in a number of
// tests which check these situations.
if (provider == null) {
yield break;
}

var attrs = provider.GetCustomAttributes ("Android.App.UsesFeatureAttribute");
foreach (var attr in attrs) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@ partial class UsesPermissionAttribute {

public static IEnumerable<UsesPermissionAttribute> FromCustomAttributeProvider (ICustomAttributeProvider provider, TypeDefinitionCache cache)
{
// `provider` might be null in situations when application configuration is broken, and it surfaces in a number of
// tests which check these situations.
if (provider == null) {
yield break;
}

var attrs = provider.GetCustomAttributes ("Android.App.UsesPermissionAttribute");
foreach (var attr in attrs) {
UsesPermissionAttribute self;
Expand Down

0 comments on commit 0167776

Please sign in to comment.