# HG changeset patch # User Artem Tikhomirov # Date 1370960701 -7200 # Node ID d074971287478f69ab0a64176ce2284d8c1e91c3 # Parent 4a0bab2c6da1afdd2a5b2d833eb1850f90955f6a Deprecated code removed diff -r 4a0bab2c6da1 -r d07497128747 src/org/tmatesoft/hg/repo/HgBlameInspector.java --- 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 { -} diff -r 4a0bab2c6da1 -r d07497128747 src/org/tmatesoft/hg/repo/HgDataFile.java --- 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());