Removed now deprecated behaviour where enums are always created in the static scope by default

This commit is contained in:
Deukhoofd 2019-02-16 13:56:51 +01:00
parent 78779588d4
commit 8829df0ba3
No known key found for this signature in database
GPG Key ID: B4C087AC81641654
1 changed files with 0 additions and 5 deletions

View File

@ -34,11 +34,6 @@ namespace Upsilon.BaseTypes.UserData
{
var name = attr.Name.ToLowerInvariant();
LoadType(type, name);
if (type.IsEnum)
{
var def = Activator.CreateInstance(type);
StaticScope.RegisterStaticVariable(attr.Name, def);
}
}
var createStaticAttribute =