]> source.dussan.org Git - jgit.git/commitdiff
RepoCommand.RemoteReader: Remove @Deprecated method 05/1200305/1
authorIvan Frade <ifrade@google.com>
Thu, 29 Aug 2024 22:45:15 +0000 (15:45 -0700)
committerIvan Frade <ifrade@google.com>
Thu, 29 Aug 2024 22:45:15 +0000 (15:45 -0700)
Cleaning up before 7.0 release.

Change-Id: I83db715a8170a54957dd5bcf38df5b0911a12107

org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/RepoCommand.java

index 9979664ceb8feacc03f850a3f56a2736aa8a084e..c80a58a7c874cf2aa42dff0f1e72664950dd9c19 100644 (file)
@@ -110,32 +110,6 @@ public class RepoCommand extends GitCommand<RevCommit> {
                @Nullable
                public ObjectId sha1(String uri, String ref) throws GitAPIException;
 
-               /**
-                * Read a file from a remote repository.
-                *
-                * @param uri
-                *            The URI of the remote repository
-                * @param ref
-                *            The ref (branch/tag/etc.) to read
-                * @param path
-                *            The relative path (inside the repo) to the file to read
-                * @return the file content.
-                * @throws GitAPIException
-                *             If the ref have an invalid or ambiguous name, or it does
-                *             not exist in the repository,
-                * @throws IOException
-                *             If the object does not exist or is too large
-                * @since 3.5
-                *
-                * @deprecated Use {@link #readFileWithMode(String, String, String)}
-                *             instead
-                */
-               @Deprecated
-               public default byte[] readFile(String uri, String ref, String path)
-                               throws GitAPIException, IOException {
-                       return readFileWithMode(uri, ref, path).getContents();
-               }
-
                /**
                 * Read contents and mode (i.e. permissions) of the file from a remote
                 * repository.