diff options
author | Jesse Bounds <jesse@rebounds.net> | 2017-01-08 17:07:06 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-08 17:07:06 -0800 |
commit | 4cee2b1a698e71bfab17a65aab2f873ce50e83c6 (patch) | |
tree | abb735386e0d8c02e4bba5cc472e4837fba528d9 /platform/darwin/src/MGLShapeCollection.mm | |
parent | 901c806916deb30affa7a8a2884069cd28dba4ca (diff) | |
download | qtlocation-mapboxgl-4cee2b1a698e71bfab17a65aab2f873ce50e83c6.tar.gz |
[ios, macos] Allow creation of shape collections with no shapes (#7632)
Diffstat (limited to 'platform/darwin/src/MGLShapeCollection.mm')
-rw-r--r-- | platform/darwin/src/MGLShapeCollection.mm | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/platform/darwin/src/MGLShapeCollection.mm b/platform/darwin/src/MGLShapeCollection.mm index c8f0d09f9a..4b468a1cbb 100644 --- a/platform/darwin/src/MGLShapeCollection.mm +++ b/platform/darwin/src/MGLShapeCollection.mm @@ -12,7 +12,6 @@ - (instancetype)initWithShapes:(NS_ARRAY_OF(MGLShape *) *)shapes { if (self = [super init]) { - NSAssert(shapes.count, @"Cannot create an empty shape collection"); _shapes = shapes.copy; } return self; |