diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2015-04-25 00:22:59 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2015-04-25 00:22:59 +0200 |
commit | 5362e1d41c8e3ce6e63fbab9882dfbc4429903e0 (patch) | |
tree | 69d972a48d90e809ceee09a395f67ddd273c7227 /org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheCheckout.java | |
parent | 6e5c71b358e9b9b883f24f073e869ff6affe5bf4 (diff) | |
download | jgit-5362e1d41c8e3ce6e63fbab9882dfbc4429903e0.tar.gz jgit-5362e1d41c8e3ce6e63fbab9882dfbc4429903e0.zip |
Delete deprecated checkoutEntry() methods in DirCacheCheckout
Change-Id: I7fcf6534e6092ba87360ccd68a7dd7466c5c8911
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheCheckout.java')
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheCheckout.java | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheCheckout.java b/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheCheckout.java index 99e022bfe8..f1241652b8 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheCheckout.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheCheckout.java @@ -1133,73 +1133,6 @@ public class DirCacheCheckout { * Updates the file in the working tree with content and mode from an entry * in the index. The new content is first written to a new temporary file in * the same directory as the real file. Then that new file is renamed to the - * final filename. Use this method only for checkout of a single entry. - * Otherwise use - * {@code checkoutEntry(Repository, File f, DirCacheEntry, ObjectReader)} - * instead which allows to reuse one {@code ObjectReader} for multiple - * entries. - * - * <p> - * TODO: this method works directly on File IO, we may need another - * abstraction (like WorkingTreeIterator). This way we could tell e.g. - * Eclipse that Files in the workspace got changed - * </p> - * - * @param repository - * @param f - * this parameter is ignored. - * @param entry - * the entry containing new mode and content - * @throws IOException - * @deprecated Use the overloaded form that accepts {@link ObjectReader}. - */ - @Deprecated - public static void checkoutEntry(final Repository repository, File f, - DirCacheEntry entry) throws IOException { - ObjectReader or = repository.newObjectReader(); - try { - checkoutEntry(repository, f, entry, or); - } finally { - or.release(); - } - } - - /** - * Updates the file in the working tree with content and mode from an entry - * in the index. The new content is first written to a new temporary file in - * the same directory as the real file. Then that new file is renamed to the - * final filename. - * - * <p> - * TODO: this method works directly on File IO, we may need another - * abstraction (like WorkingTreeIterator). This way we could tell e.g. - * Eclipse that Files in the workspace got changed - * </p> - * - * @param repo - * @param f - * this parameter is ignored. - * @param entry - * the entry containing new mode and content - * @param or - * object reader to use for checkout - * @throws IOException - * @deprecated Do not pass File object. - */ - @Deprecated - public static void checkoutEntry(final Repository repo, File f, - DirCacheEntry entry, ObjectReader or) throws IOException { - if (f == null || repo.getWorkTree() == null) - throw new IllegalArgumentException(); - if (!f.equals(new File(repo.getWorkTree(), entry.getPathString()))) - throw new IllegalArgumentException(); - checkoutEntry(repo, entry, or); - } - - /** - * Updates the file in the working tree with content and mode from an entry - * in the index. The new content is first written to a new temporary file in - * the same directory as the real file. Then that new file is renamed to the * final filename. * * <p> |