]> source.dussan.org Git - jgit.git/commitdiff
WindowCacheStats: remove deprecated #getOpenFiles, #getOpenBytes 06/1200406/2
authorMatthias Sohn <matthias.sohn@sap.com>
Fri, 30 Aug 2024 15:47:16 +0000 (17:47 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Tue, 3 Sep 2024 14:11:03 +0000 (16:11 +0200)
Change-Id: If254177fd7914cb1f909f6620032bb4016208855

org.eclipse.jgit/src/org/eclipse/jgit/storage/file/WindowCacheStats.java

index 7cb86183027b73a6a6b32bce5debdd339b843661..668b92cf533117b6be01b04f4704d3ab65dd7d61 100644 (file)
@@ -22,27 +22,6 @@ import org.eclipse.jgit.internal.storage.file.WindowCache;
  */
 @MXBean
 public interface WindowCacheStats {
-       /**
-        * Get number of open files
-        *
-        * @return the number of open files.
-        * @deprecated use {@link #getOpenFileCount()} instead
-        */
-       @Deprecated
-       public static int getOpenFiles() {
-               return (int) WindowCache.getInstance().getStats().getOpenFileCount();
-       }
-
-       /**
-        * Get number of open bytes
-        *
-        * @return the number of open bytes.
-        * @deprecated use {@link #getOpenByteCount()} instead
-        */
-       @Deprecated
-       public static long getOpenBytes() {
-               return WindowCache.getInstance().getStats().getOpenByteCount();
-       }
 
        /**
         * Get cache statistics