diff --git a/src/Debug/MetaAttributes/EcsMetaAttribute.cs b/src/Debug/MetaAttributes/EcsMetaAttribute.cs index 7cf48f4..58b986a 100644 --- a/src/Debug/MetaAttributes/EcsMetaAttribute.cs +++ b/src/Debug/MetaAttributes/EcsMetaAttribute.cs @@ -7,11 +7,12 @@ namespace DCFApixels.DragonECS internal unsafe static class EcsMetaAttributeHalper { + internal const string EMPTY_NO_SENSE_MESSAGE = "With empty parameters, this attribute makes no sense."; [ThreadStatic] private static string[] _splitBuffer; public static string[] Split(char separator, string value) { - if(_splitBuffer == null) + if (_splitBuffer == null) { _splitBuffer = new string[128]; } @@ -24,7 +25,7 @@ namespace DCFApixels.DragonECS { if (reader.current != null) { - if(_splitBuffer.Length == bufferIndex) + if (_splitBuffer.Length == bufferIndex) { Array.Resize(ref _splitBuffer, _splitBuffer.Length << 1); } @@ -33,7 +34,7 @@ namespace DCFApixels.DragonECS } } - string[] result = new string[bufferIndex]; + string[] result = new string[bufferIndex]; for (int i = 0; i < bufferIndex; i++) { result[i] = _splitBuffer[i]; diff --git a/src/Debug/MetaAttributes/MetaGroupAttribute.cs b/src/Debug/MetaAttributes/MetaGroupAttribute.cs index 80816ad..feaa150 100644 --- a/src/Debug/MetaAttributes/MetaGroupAttribute.cs +++ b/src/Debug/MetaAttributes/MetaGroupAttribute.cs @@ -12,7 +12,7 @@ namespace DCFApixels.DragonECS public const char SEPARATOR = '/'; public readonly MetaGroup Data; - [Obsolete("With empty parameters, this attribute makes no sense.")] + [Obsolete(EcsMetaAttributeHalper.EMPTY_NO_SENSE_MESSAGE)] public MetaGroupAttribute() { } public MetaGroupAttribute(string name) { diff --git a/src/Debug/MetaAttributes/MetaTagsAttribute.cs b/src/Debug/MetaAttributes/MetaTagsAttribute.cs index 7831a72..1f1600f 100644 --- a/src/Debug/MetaAttributes/MetaTagsAttribute.cs +++ b/src/Debug/MetaAttributes/MetaTagsAttribute.cs @@ -13,7 +13,7 @@ namespace DCFApixels.DragonECS get { return _tags; } } - [Obsolete("With empty parameters, this attribute makes no sense.")] + [Obsolete(EcsMetaAttributeHalper.EMPTY_NO_SENSE_MESSAGE)] public MetaTagsAttribute() { } public MetaTagsAttribute(string tags) { diff --git a/src/Debug/TypeMeta.cs b/src/Debug/TypeMeta.cs index 988b69a..2b538bc 100644 --- a/src/Debug/TypeMeta.cs +++ b/src/Debug/TypeMeta.cs @@ -1,5 +1,4 @@ using DCFApixels.DragonECS.Internal; -using DCFApixels.DragonECS.RunnersCore; using System; using System.Collections.Generic; using System.Diagnostics; diff --git a/src/Injections/Utils/Exceptions.cs b/src/Injections/Utils/Exceptions.cs deleted file mode 100644 index 3af1656..0000000 --- a/src/Injections/Utils/Exceptions.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System; - -namespace DCFApixels.DragonECS.DI.Internal -{ - internal class Throw - { - public static void ArgumentNull() - { - throw new ArgumentNullException(); - } - } -} diff --git a/src/Injections/Utils/Exceptions.cs.meta b/src/Injections/Utils/Exceptions.cs.meta deleted file mode 100644 index 412cb97..0000000 --- a/src/Injections/Utils/Exceptions.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 790577d4144473d448401799f01ddf50 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: