OSDN Git Service

LazyJsonの不要になったコンストラクタを削除
authorKimura Youichi <kim.upsilon@bucyou.net>
Tue, 12 Dec 2023 18:01:42 +0000 (03:01 +0900)
committerKimura Youichi <kim.upsilon@bucyou.net>
Tue, 12 Dec 2023 18:01:42 +0000 (03:01 +0900)
OpenTween/Connection/LazyJson.cs

index 2f0bc80..51a156c 100644 (file)
@@ -46,14 +46,6 @@ namespace OpenTween.Connection
         public LazyJson(HttpResponseMessage response)
             => this.Response = response;
 
-        internal LazyJson(T instance)
-        {
-            this.Response = null;
-
-            this.instance = instance;
-            this.completed = true;
-        }
-
         public async Task<T> LoadJsonAsync()
         {
             if (this.completed)
@@ -80,12 +72,6 @@ namespace OpenTween.Connection
             => this.Response?.Dispose();
     }
 
-    public static class LazyJson
-    {
-        public static LazyJson<T> Create<T>(T instance)
-            => new(instance);
-    }
-
     public static class LazyJsonTaskExtension
     {
         public static async Task IgnoreResponse<T>(this Task<LazyJson<T>> task)