diff src/org/tmatesoft/hg/repo/HgDataFile.java @ 640:d07497128747

Deprecated code removed
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Tue, 11 Jun 2013 16:25:01 +0200
parents 54e16ab771ec
children 12a4f60ea972
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/repo/HgDataFile.java	Fri Jun 07 12:32:15 2013 +0200
+++ b/src/org/tmatesoft/hg/repo/HgDataFile.java	Tue Jun 11 16:25:01 2013 +0200
@@ -27,13 +27,7 @@
 import java.nio.channels.FileChannel;
 import java.util.Arrays;
 
-import org.tmatesoft.hg.core.HgBlameInspector;
-import org.tmatesoft.hg.core.HgCallbackTargetException;
 import org.tmatesoft.hg.core.HgChangesetFileSneaker;
-import org.tmatesoft.hg.core.HgDiffCommand;
-import org.tmatesoft.hg.core.HgException;
-import org.tmatesoft.hg.core.HgIterateDirection;
-import org.tmatesoft.hg.core.HgLibraryFailureException;
 import org.tmatesoft.hg.core.Nodeid;
 import org.tmatesoft.hg.internal.DataAccess;
 import org.tmatesoft.hg.internal.FileUtils;
@@ -428,54 +422,6 @@
 		return getRepo().getManifest().getFileFlags(changesetRevIndex, getPath());
 	}
 
-	/**
-	 * @deprecated use {@link HgDiffCommand} instead
-	 */
-	@Deprecated
-	public void diff(int clogRevIndex1, int clogRevIndex2, HgBlameInspector insp) throws HgRuntimeException, HgCallbackTargetException {
-		try {
-			new HgDiffCommand(getRepo()).file(this).range(clogRevIndex1, clogRevIndex2).executeDiff(insp);
-		} catch (HgLibraryFailureException ex) {
-			throw ex.getCause();
-		} catch (HgException ex) {
-			throw new HgInvalidStateException(ex.getMessage());
-		} catch (CancelledException ex) {
-			throw new HgInvalidStateException("Cancellatin is not expected");
-		}
-	}
-	
-	/**
-	 * @deprecated use {@link HgDiffCommand} instead
-	 */
-	@Deprecated
-	public void annotate(int clogRevIndex1, int clogRevIndex2, HgBlameInspector insp, HgIterateDirection iterateOrder) throws HgRuntimeException, HgCallbackTargetException {
-		try {
-			new HgDiffCommand(getRepo()).file(this).range(clogRevIndex1, clogRevIndex2).order(iterateOrder).executeAnnotate(insp);
-		} catch (HgLibraryFailureException ex) {
-			throw ex.getCause();
-		} catch (HgException ex) {
-			throw new HgInvalidStateException(ex.getMessage());
-		} catch (CancelledException ex) {
-			throw new HgInvalidStateException("Cancellatin is not expected");
-		}
-	}
-	
-	/**
-	 * @deprecated use {@link HgDiffCommand} instead
-	 */
-	@Deprecated
-	public void annotateSingleRevision(int changelogRevisionIndex, HgBlameInspector insp) throws HgRuntimeException, HgCallbackTargetException {
-		try {
-			new HgDiffCommand(getRepo()).file(this).changeset(changelogRevisionIndex).executeParentsAnnotate(insp);
-		} catch (HgLibraryFailureException ex) {
-			throw ex.getCause();
-		} catch (HgException ex) {
-			throw new HgInvalidStateException(ex.getMessage());
-		} catch (CancelledException ex) {
-			throw new HgInvalidStateException("Cancellatin is not expected");
-		}
-	}
-
 	@Override
 	public String toString() {
 		StringBuilder sb = new StringBuilder(getClass().getSimpleName());