oltu-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r1733190 - /oltu/trunk/oauth-2.0/common/src/main/java/org/apache/oltu/oauth2/common/utils/OAuthUtils.java
Date Tue, 01 Mar 2016 23:37:14 GMT
Author: stein
Date: Tue Mar  1 23:37:13 2016
New Revision: 1733190

URL: http://svn.apache.org/viewvc?rev=1733190&view=rev
Log:
OLTU-68 Remove unused method.

Modified:
    oltu/trunk/oauth-2.0/common/src/main/java/org/apache/oltu/oauth2/common/utils/OAuthUtils.java

Modified: oltu/trunk/oauth-2.0/common/src/main/java/org/apache/oltu/oauth2/common/utils/OAuthUtils.java
URL: http://svn.apache.org/viewvc/oltu/trunk/oauth-2.0/common/src/main/java/org/apache/oltu/oauth2/common/utils/OAuthUtils.java?rev=1733190&r1=1733189&r2=1733190&view=diff
==============================================================================
--- oltu/trunk/oauth-2.0/common/src/main/java/org/apache/oltu/oauth2/common/utils/OAuthUtils.java
(original)
+++ oltu/trunk/oauth-2.0/common/src/main/java/org/apache/oltu/oauth2/common/utils/OAuthUtils.java
Tue Mar  1 23:37:13 2016
@@ -248,23 +248,6 @@ public final class OAuthUtils {
         }
     }
 
-    /**
-     * Construct a &-separated list of the given values, percentEncoded.
-     */
-    public static String percentEncode(Iterable values) {
-        StringBuilder p = new StringBuilder();
-        for (Object v : values) {
-            String stringValue = toString(v);
-            if (!isEmpty(stringValue)) {
-                if (p.length() > 0) {
-                    p.append("&");
-                }
-                p.append(OAuthUtils.percentEncode(toString(v)));
-            }
-        }
-        return p.toString();
-    }
-
     public static String percentEncode(String s) {
         if (s == null) {
             return "";
@@ -280,10 +263,6 @@ public final class OAuthUtils {
         }
     }
 
-    private static final String toString(Object from) {
-        return (from == null) ? null : from.toString();
-    }
-
     private static boolean isEmpty(Set<String> missingParams) {
         if (missingParams == null || missingParams.size() == 0) {
             return true;



Mime
View raw message