From 19da74f913ed6554d5123324378857df230244fe Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Thu, 29 Jul 2021 19:45:33 +0200 Subject: [PATCH] Drop byte from VS types --- .../Editor/Modules/SourceCodeEditing/CodeEditingModule.cs | 1 - Source/Engine/Core/Types/Variant.cpp | 8 +------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/Source/Editor/Modules/SourceCodeEditing/CodeEditingModule.cs b/Source/Editor/Modules/SourceCodeEditing/CodeEditingModule.cs index 1516cce0c..2989bbf1b 100644 --- a/Source/Editor/Modules/SourceCodeEditing/CodeEditingModule.cs +++ b/Source/Editor/Modules/SourceCodeEditing/CodeEditingModule.cs @@ -38,7 +38,6 @@ namespace FlaxEditor.Modules.SourceCodeEditing { // Add in-build types _list.Add(new ScriptType(typeof(bool))); - _list.Add(new ScriptType(typeof(byte))); _list.Add(new ScriptType(typeof(short))); _list.Add(new ScriptType(typeof(ushort))); _list.Add(new ScriptType(typeof(int))); diff --git a/Source/Engine/Core/Types/Variant.cpp b/Source/Engine/Core/Types/Variant.cpp index ac150d44d..730454d4b 100644 --- a/Source/Engine/Core/Types/Variant.cpp +++ b/Source/Engine/Core/Types/Variant.cpp @@ -3063,15 +3063,9 @@ void Variant::AllocStructure() AsBlob.Data = Allocator::Allocate(AsBlob.Length); type.Struct.Ctor(AsBlob.Data); } - else if (typeName == "System.Byte") - { - // Hack for byte - AsBlob.Length = 1; - AsBlob.Data = Allocator::Allocate(AsBlob.Length); - *((byte*)AsBlob.Data) = 0; - } else if (typeName == "System.Int16" || typeName == "System.UInt16") { + // [Deprecated on 10.05.2021, expires on 10.05.2023] // Hack for 16bit int AsBlob.Length = 2; AsBlob.Data = Allocator::Allocate(AsBlob.Length);