]> source.dussan.org Git - jgit.git/commitdiff
Delete deprecated WorkingTreeIterator.isModified(DirCacheEntry, boolean) 37/49337/1
authorMatthias Sohn <matthias.sohn@sap.com>
Fri, 24 Apr 2015 23:07:20 +0000 (01:07 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Wed, 3 Jun 2015 11:16:26 +0000 (13:16 +0200)
Change-Id: I687c392e5a625fd66c45998c94373aa59921b986
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit/src/org/eclipse/jgit/treewalk/WorkingTreeIterator.java

index 3838149a4fb6152b8aaf56ed4d1cb516c3d94046..d7c93d1a1c7e7abb588b60135637a10644039121 100644 (file)
@@ -62,7 +62,6 @@ import java.util.Arrays;
 import java.util.Collections;
 import java.util.Comparator;
 
-import org.eclipse.jgit.api.errors.JGitInternalException;
 import org.eclipse.jgit.attributes.AttributesNode;
 import org.eclipse.jgit.attributes.AttributesRule;
 import org.eclipse.jgit.diff.RawText;
@@ -886,32 +885,6 @@ public abstract class WorkingTreeIterator extends AbstractTreeIterator {
                        return MetadataDiff.SMUDGED;
        }
 
-       /**
-        * Checks whether this entry differs from a given entry from the
-        * {@link DirCache}.
-        *
-        * File status information is used and if status is same we consider the
-        * file identical to the state in the working directory. Native git uses
-        * more stat fields than we have accessible in Java.
-        *
-        * @param entry
-        *            the entry from the dircache we want to compare against
-        * @param forceContentCheck
-        *            True if the actual file content should be checked if
-        *            modification time differs.
-        * @return true if content is most likely different.
-        * @deprecated Use {@link #isModified(DirCacheEntry, boolean, ObjectReader)}
-        */
-       @Deprecated
-       public boolean isModified(DirCacheEntry entry, boolean forceContentCheck) {
-               try {
-                       return isModified(entry, forceContentCheck,
-                                       repository.newObjectReader());
-               } catch (IOException e) {
-                       throw new JGitInternalException(e.getMessage(), e);
-               }
-       }
-
        /**
         * Checks whether this entry differs from a given entry from the
         * {@link DirCache}.