changeset 150:6b55f10ef54b

Unused variables removed.
author Alexander Kitaev <kitaev@gmail.com>
date Thu, 24 Feb 2011 18:53:33 +0100
parents 868a5a6e9f93
children 305ee74c0aa6
files cmdline/org/tmatesoft/hg/console/Cat.java cmdline/org/tmatesoft/hg/console/Remote.java src/org/tmatesoft/hg/core/HgStatusCommand.java src/org/tmatesoft/hg/internal/Internals.java test/org/tmatesoft/hg/test/LogOutputParser.java
diffstat 5 files changed, 2 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/cmdline/org/tmatesoft/hg/console/Cat.java	Thu Feb 24 18:52:46 2011 +0100
+++ b/cmdline/org/tmatesoft/hg/console/Cat.java	Thu Feb 24 18:53:33 2011 +0100
@@ -18,6 +18,7 @@
 
 import static org.tmatesoft.hg.repo.HgRepository.TIP;
 
+import java.io.IOException;
 import java.io.OutputStream;
 import java.nio.ByteBuffer;
 
@@ -61,7 +62,7 @@
 			stream = out;
 		}
 
-		public int write(ByteBuffer buffer) throws Exception {
+		public int write(ByteBuffer buffer) throws IOException {
 			int count = buffer.remaining();
 			while(buffer.hasRemaining()) {
 				stream.write(buffer.get());
--- a/cmdline/org/tmatesoft/hg/console/Remote.java	Thu Feb 24 18:52:46 2011 +0100
+++ b/cmdline/org/tmatesoft/hg/console/Remote.java	Thu Feb 24 18:53:33 2011 +0100
@@ -53,7 +53,6 @@
 	 cmd=branchmap
 	 */
 	public static void main(String[] args) throws Exception {
-		String nid = "d6d2a630f4a6d670c90a5ca909150f2b426ec88f";
 		ConfigFile cfg = new Internals().newConfigFile();
 		cfg.addLocation(new File(System.getProperty("user.home"), ".hgrc"));
 		String svnkitServer = cfg.getSection("paths").get("svnkit");
--- a/src/org/tmatesoft/hg/core/HgStatusCommand.java	Thu Feb 24 18:52:46 2011 +0100
+++ b/src/org/tmatesoft/hg/core/HgStatusCommand.java	Thu Feb 24 18:53:33 2011 +0100
@@ -41,7 +41,6 @@
 
 	private int startRevision = TIP;
 	private int endRevision = WORKING_COPY; 
-	private boolean visitSubRepo = true;
 	
 	private final Mediator mediator = new Mediator();
 
@@ -152,7 +151,6 @@
 	}
 
 	public HgStatusCommand subrepo(boolean visit) {
-		visitSubRepo  = visit;
 		throw HgRepository.notImplemented();
 	}
 
--- a/src/org/tmatesoft/hg/internal/Internals.java	Thu Feb 24 18:52:46 2011 +0100
+++ b/src/org/tmatesoft/hg/internal/Internals.java	Thu Feb 24 18:53:33 2011 +0100
@@ -32,7 +32,6 @@
  */
 public class Internals {
 	
-	private int revlogVersion = 0;
 	private int requiresFlags = 0;
 	private List<Filter.Factory> filterFactories;
 	
@@ -41,7 +40,6 @@
 	}
 
 	public/*for tests, otherwise pkg*/ void setStorageConfig(int version, int flags) {
-		revlogVersion = version;
 		requiresFlags = flags;
 	}
 
--- a/test/org/tmatesoft/hg/test/LogOutputParser.java	Thu Feb 24 18:52:46 2011 +0100
+++ b/test/org/tmatesoft/hg/test/LogOutputParser.java	Thu Feb 24 18:53:33 2011 +0100
@@ -37,7 +37,6 @@
 	private Pattern pattern4;
 	
 	public LogOutputParser(boolean outputWithDebug) {
-		String p;
 		if (outputWithDebug) {
 			pattern1 = Pattern.compile("^changeset:\\s+(\\d+):([a-f0-9]{40})\n(^tag:(.+)$)?", Pattern.MULTILINE);
 			pattern2 = Pattern.compile("^parent:\\s+(-?\\d+):([a-f0-9]{40})\n", Pattern.MULTILINE);
@@ -98,10 +97,4 @@
 		public String date;
 		public String description;
 	}
-
-	private static void a(Matcher m) {
-		for (int i = 1; i <= m.groupCount(); i++) {
-			System.out.println("" + i + ":" + m.group(i));
-		}
-	}
 }