OSDN Git Service

未使用プロパティを削除した
authortest <test@yahoo.co.jp>
Sat, 19 Dec 2020 03:55:53 +0000 (12:55 +0900)
committertest <test@yahoo.co.jp>
Sat, 19 Dec 2020 03:55:53 +0000 (12:55 +0900)
Core/StringBuffer.cs

index 0ab830c..58953ef 100644 (file)
@@ -41,7 +41,6 @@ namespace FooEditEngine
     {
         GapBuffer<char> buf = new GapBuffer<char>();
         const int MaxSemaphoreCount = 1;
-        SemaphoreSlim Semaphore = new SemaphoreSlim(MaxSemaphoreCount);
         AsyncReaderWriterLock rwlock = new AsyncReaderWriterLock();
 
         public StringBuffer()
@@ -49,17 +48,6 @@ namespace FooEditEngine
             this.Update = (s, e) => { };
         }
 
-        /// <summary>
-        /// ロック中なら真を返し、そうでないなら偽を返す
-        /// </summary>
-        public bool IsLocked
-        {
-            get
-            {
-                return this.Semaphore.CurrentCount == 0;
-            }
-        }
-
         public StringBuffer(StringBuffer buffer)
             : this()
         {