diff --git a/Assets/VRMShaders/GLTF/IO/Runtime/TextureFactory.cs b/Assets/VRMShaders/GLTF/IO/Runtime/TextureFactory.cs index 8922bffe2..34c58f6ae 100644 --- a/Assets/VRMShaders/GLTF/IO/Runtime/TextureFactory.cs +++ b/Assets/VRMShaders/GLTF/IO/Runtime/TextureFactory.cs @@ -9,7 +9,6 @@ namespace VRMShaders public class TextureFactory : IResponsibilityForDestroyObjects { private readonly IReadOnlyDictionary _externalMap; - private readonly Dictionary _temporaryTextures = new Dictionary(); private readonly Dictionary _textureCache = new Dictionary(); public ITextureDeserializer TextureDeserializer { get; } @@ -32,11 +31,6 @@ namespace VRMShaders public void Dispose() { - foreach (var kv in _temporaryTextures) - { - UnityObjectDestoyer.DestroyRuntimeOrEditor(kv.Value); - } - _temporaryTextures.Clear(); _textureCache.Clear(); } @@ -134,8 +128,6 @@ namespace VRMShaders default: throw new ArgumentOutOfRangeException(); } - - throw new NotImplementedException(); } } }