Merge pull request #207 from Herringway/remove-size-asserts

remove all sizeof asserts
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
This commit is contained in:
The Dlang Bot 2018-12-11 21:38:05 +01:00 committed by GitHub
commit a8734185d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 6 deletions

View file

@ -102,8 +102,6 @@ struct Event
assert(id == EventID.documentStart, "Only DocumentStart events have tag directives."); assert(id == EventID.documentStart, "Only DocumentStart events have tag directives.");
return _tagDirectives; return _tagDirectives;
} }
static assert(Event.sizeof <= 64, "Event struct larger than expected");
} }
/** /**

View file

@ -57,8 +57,6 @@ struct Mark
} }
} }
static assert(Mark.sizeof == 4, "Unexpected Mark size");
// A struct storing parameters to the MarkedYAMLException constructor. // A struct storing parameters to the MarkedYAMLException constructor.
struct MarkedYAMLExceptionData struct MarkedYAMLExceptionData
{ {

View file

@ -95,8 +95,6 @@ struct Token
/// Get string representation of the token ID. /// Get string representation of the token ID.
@property string idString() @safe pure const {return id.to!string;} @property string idString() @safe pure const {return id.to!string;}
} }
static assert(Token.sizeof <= 32, "Token has unexpected size");
/// Construct a directive token. /// Construct a directive token.
/// ///