remove all sizeof asserts

This commit is contained in:
Cameron Ross 2018-12-11 16:29:19 -04:00
parent d51e75aec5
commit 6ad32fa6b3
No known key found for this signature in database
GPG key ID: 777897D98DC91C54
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.");
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.
struct MarkedYAMLExceptionData
{

View file

@ -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.
///