From 6ad32fa6b330662ee9741be90f9f999aed743b06 Mon Sep 17 00:00:00 2001 From: Cameron Ross Date: Tue, 11 Dec 2018 16:29:19 -0400 Subject: [PATCH] remove all sizeof asserts --- source/dyaml/event.d | 2 -- source/dyaml/exception.d | 2 -- source/dyaml/token.d | 2 -- 3 files changed, 6 deletions(-) diff --git a/source/dyaml/event.d b/source/dyaml/event.d index 0cbe680..cd7a927 100644 --- a/source/dyaml/event.d +++ b/source/dyaml/event.d @@ -102,8 +102,6 @@ struct Event assert(id == EventID.documentStart, "Only DocumentStart events have tag directives."); return _tagDirectives; } - - static assert(Event.sizeof <= 64, "Event struct larger than expected"); } /** diff --git a/source/dyaml/exception.d b/source/dyaml/exception.d index f214726..7a8c426 100644 --- a/source/dyaml/exception.d +++ b/source/dyaml/exception.d @@ -57,8 +57,6 @@ struct Mark } } -static assert(Mark.sizeof == 4, "Unexpected Mark size"); - // A struct storing parameters to the MarkedYAMLException constructor. struct MarkedYAMLExceptionData { diff --git a/source/dyaml/token.d b/source/dyaml/token.d index 4f17514..5400a3f 100644 --- a/source/dyaml/token.d +++ b/source/dyaml/token.d @@ -95,8 +95,6 @@ struct Token /// Get string representation of the token ID. @property string idString() @safe pure const {return id.to!string;} } -static assert(Token.sizeof <= 32, "Token has unexpected size"); - /// Construct a directive token. ///