# HG changeset patch # User Alexander Kitaev # Date 1298570013 -3600 # Node ID 6b55f10ef54bd5f46fbd5f67a4b716b814d6aa6f # Parent 868a5a6e9f93981a0eb149498bc7e351e27419b6 Unused variables removed. diff -r 868a5a6e9f93 -r 6b55f10ef54b cmdline/org/tmatesoft/hg/console/Cat.java --- 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()); diff -r 868a5a6e9f93 -r 6b55f10ef54b cmdline/org/tmatesoft/hg/console/Remote.java --- 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"); diff -r 868a5a6e9f93 -r 6b55f10ef54b src/org/tmatesoft/hg/core/HgStatusCommand.java --- 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(); } diff -r 868a5a6e9f93 -r 6b55f10ef54b src/org/tmatesoft/hg/internal/Internals.java --- 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 filterFactories; @@ -41,7 +40,6 @@ } public/*for tests, otherwise pkg*/ void setStorageConfig(int version, int flags) { - revlogVersion = version; requiresFlags = flags; } diff -r 868a5a6e9f93 -r 6b55f10ef54b test/org/tmatesoft/hg/test/LogOutputParser.java --- 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)); - } - } }