Skip to content

Commit

Permalink
Do not use regions
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelmathot committed Feb 7, 2023
1 parent ac186ea commit ebce9c3
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 17 deletions.
3 changes: 2 additions & 1 deletion src/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -404,4 +404,5 @@ file_header_template = Copyright (c) by Terradue Srl. All Rights Reserved.\nLice
dotnet_diagnostic.SA1636.severity = none # Disable file header matching
dotnet_diagnostic.SA1501.severity = error # Braces must not be omitted
dotnet_diagnostic.SA1101.severity = warning # Prefix local calls with this
dotnet_diagnostic.SA1507.severity = warning # Code should not contain multiple blank lines in a row
dotnet_diagnostic.SA1507.severity = warning # Code should not contain multiple blank lines in a row
dotnet_diagnostic.SA1124.severity = warning # Do not use regions
2 changes: 0 additions & 2 deletions src/DotNetStac/Extensions/VirtualAssets/VirtualAsset.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ namespace Stac.Extensions.VirtualAssets
public class VirtualAsset : StacAsset
{

#region Static members

/// <summary>
/// Create a new Virtual Asset from assets defined in an existing stac item
Expand All @@ -30,7 +29,6 @@ public static VirtualAsset Create(StacItem stacItem, IList<string> assetsKey, IS
return new VirtualAsset(parentObject, stacItem.Assets.Select(asset => new Uri(asset.Value.Uri, "#" + asset.Key)).ToList());
}

#endregion

/// <summary>
/// Initialize a new Virtual Asset for a STAC object with an array of items
Expand Down
2 changes: 0 additions & 2 deletions src/DotNetStac/StacCatalog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ public StacCatalog(StacCatalog stacCatalog)
this.Properties = new Dictionary<string, object>(stacCatalog.Properties);
}

# region IStacObject

/// <summary>
/// Identifier for the Catalog.
Expand Down Expand Up @@ -104,7 +103,6 @@ public ICollection<StacLink> Links
[JsonIgnore]
public ContentType MediaType => CATALOG_MEDIATYPE;

# endregion IStacObject

/// <summary>
/// STAC type (Catalog)
Expand Down
5 changes: 0 additions & 5 deletions src/DotNetStac/StacCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ public StacCollection(StacCollection stacCollection)
this.Extent = new StacExtent(stacCollection.Extent);
}

#region IStacObject

/// <summary>
/// Identifier for the Collection.
Expand Down Expand Up @@ -110,7 +109,6 @@ public ICollection<StacLink> Links
[JsonIgnore]
public ContentType MediaType => COLLECTION_MEDIATYPE;

#endregion IStacObject

/// <summary>
/// STAC type (Collection)
Expand Down Expand Up @@ -188,7 +186,6 @@ public bool ShouldSerializeAssets()
return this.Assets.Count > 0;
}

#region Static Methods

/// <summary>
/// Generate a collection corresponding to the items' dictionary. Spatial and temporal extents
Expand Down Expand Up @@ -258,8 +255,6 @@ public static StacCollection Create(string id,
return collection;
}

#endregion

public void Update(IDictionary<Uri, StacItem> items)
{

Expand Down
3 changes: 0 additions & 3 deletions src/DotNetStac/StacItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ private void LinksCollectionChanged(object sender, NotifyCollectionChangedEventA
}
}

#region IStacObject

/// <summary>
/// The STAC version the Item implements
Expand Down Expand Up @@ -114,8 +113,6 @@ public ICollection<StacLink> Links
[JsonIgnore]
public ContentType MediaType => ITEM_MEDIATYPE;

# endregion IStacObject

[JsonProperty("assets", Order = 4)]
public IDictionary<string, StacAsset> Assets { get; private set; }

Expand Down
4 changes: 0 additions & 4 deletions src/DotNetStac/StacLink.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ namespace Stac
[DataContract]
public class StacLink
{
#region Static members

public static StacLink CreateSelfLink(Uri uri, string mediaType = null, string title = null)
{
return new StacLink(uri, "self", title, mediaType);
Expand Down Expand Up @@ -61,8 +59,6 @@ public static StacLink CreateObjectLink(IStacObject stacObject, Uri uri)
return new StacObjectLink(stacObject, uri);
}

#endregion

public StacLink()
{
}
Expand Down

0 comments on commit ebce9c3

Please sign in to comment.