changeset 640:d07497128747

Deprecated code removed
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Tue, 11 Jun 2013 16:25:01 +0200
parents 4a0bab2c6da1
children 2f33f102a8fa
files src/org/tmatesoft/hg/repo/HgBlameInspector.java src/org/tmatesoft/hg/repo/HgDataFile.java
diffstat 2 files changed, 0 insertions(+), 78 deletions(-) [+]
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/repo/HgBlameInspector.java	Fri Jun 07 12:32:15 2013 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,24 +0,0 @@
-/*
- * Copyright (c) 2013 TMate Software Ltd
- *  
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * For information on how to redistribute this software under
- * the terms of a license other than GNU General Public License
- * contact TMate Software at support@hg4j.com
- */
-package org.tmatesoft.hg.repo;
-
-/**
- * @deprecated use {@link org.tmatesoft.hg.core.HgBlameInspector} instead
- */
-@Deprecated
-public interface HgBlameInspector extends org.tmatesoft.hg.core.HgBlameInspector {
-}
--- 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());