diff test/org/tmatesoft/hg/test/MapTagsToFileRevisions.java @ 424:6437d261048a

Deprecated code removed
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Wed, 28 Mar 2012 15:42:15 +0200
parents 9c9c442b5f2e
children 063b0663495a
line wrap: on
line diff
--- a/test/org/tmatesoft/hg/test/MapTagsToFileRevisions.java	Fri Mar 23 22:51:18 2012 +0100
+++ b/test/org/tmatesoft/hg/test/MapTagsToFileRevisions.java	Wed Mar 28 15:42:15 2012 +0200
@@ -265,7 +265,7 @@
 		// file2rev2tag value is array of revisions, always of allTags.length. Revision index in the array
 		// is index of corresponding TagInfo in allTags;
 		final Map<Path, Nodeid[]> file2rev2tag = new HashMap<Path, Nodeid[]>();
-		repository.getManifest().walk(new HgManifest.Inspector2() {
+		repository.getManifest().walk(new HgManifest.Inspector() {
 			private int[] tagIndexAtRev = new int[4]; // it's unlikely there would be a lot of tags associated with a given cset
 
 			public boolean begin(int mainfestRevision, Nodeid nid, int changelogRevision) {
@@ -289,10 +289,6 @@
 				}
 				return true;
 			}
-			
-			public boolean next(Nodeid nid, String fname, String flags) {
-				throw new IllegalStateException(HgManifest.Inspector2.class.getName());
-			}
 
 			public boolean next(Nodeid nid, Path fname, HgManifest.Flags flags) {
 				Nodeid[] m = file2rev2tag.get(fname);
@@ -370,13 +366,10 @@
 		System.out.printf("Free mem: %,d\n", Runtime.getRuntime().freeMemory());
 	}
 
-	static class DoNothingManifestInspector implements HgManifest.Inspector2 {
+	static class DoNothingManifestInspector implements HgManifest.Inspector {
 		public boolean begin(int mainfestRevision, Nodeid nid, int changelogRevision) {
 			return true;
 		}
-		public boolean next(Nodeid nid, String fname, String flags) {
-			throw new IllegalStateException(HgManifest.Inspector2.class.getName());
-		}
 		public boolean next(Nodeid nid, Path fname, Flags flags) {
 			return true;
 		}