]> source.dussan.org Git - jgit.git/commitdiff
Removed unused parameters from private methods 68/6268/4
authorRobin Rosenberg <robin.rosenberg@dewire.com>
Wed, 6 Jun 2012 00:26:53 +0000 (02:26 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Wed, 6 Jun 2012 07:44:18 +0000 (09:44 +0200)
Change-Id: I60bc03b9550ccd2350918e6328276ec9839748d5
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit/src/org/eclipse/jgit/diff/DiffFormatter.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/URIish.java

index ceb4cb0c0a5a17ee0940ac2869cd084e02ad6e69..4258f74094e6f935c29115bfcafde2dc8026fa7b 100644 (file)
@@ -963,7 +963,7 @@ public class DiffFormatter {
                if (entry.getMode(side).getObjectType() != Constants.OBJ_BLOB)
                        return EMPTY;
 
-               if (isBinary(entry.getPath(side)))
+               if (isBinary())
                        return BINARY;
 
                AbbreviatedObjectId id = entry.getId(side);
@@ -1004,7 +1004,7 @@ public class DiffFormatter {
                }
        }
 
-       private boolean isBinary(String path) {
+       private boolean isBinary() {
                return false;
        }
 
index 9b061329fc654788212030115c785459e1941eaa..f2d3c8c235672e36c45eadb2b77ae0b15b77dada 100644 (file)
@@ -591,15 +591,14 @@ public class URIish implements Serializable {
         * @return the URI, including its password field, if any.
         */
        public String toPrivateString() {
-               return format(true, false, false);
+               return format(true, false);
        }
 
        public String toString() {
-               return format(false, false, false);
+               return format(false, false);
        }
 
-       private String format(final boolean includePassword, boolean escape,
-                       boolean escapeNonAscii) {
+       private String format(final boolean includePassword, boolean escapeNonAscii) {
                final StringBuilder r = new StringBuilder();
                if (getScheme() != null) {
                        r.append(getScheme());
@@ -646,7 +645,7 @@ public class URIish implements Serializable {
         * @return the URI as an ASCII string. Password is not included.
         */
        public String toASCIIString() {
-               return format(false, true, true);
+               return format(false, true);
        }
 
        /**
@@ -654,7 +653,7 @@ public class URIish implements Serializable {
         *         such that it will be valid for use over the network.
         */
        public String toPrivateASCIIString() {
-               return format(true, true, true);
+               return format(true, true);
        }
 
        /**