]> iEval git - fonbot.git/blobdiff - src/ro/ieval/fonbot/Utils.java
Drop Utils#parseHttpMessage
[fonbot.git] / src / ro / ieval / fonbot / Utils.java
index c6993562b049eca70ea8d2884ba4c7c02cdd5932..ddb506bfdbabe17d80e81b002742ad2604c5146b 100644 (file)
@@ -335,21 +335,6 @@ public final class Utils {
                }
        }
 
-       /**
-        * Parses a HTTP response message of the form <code>(part1) part2</code>, returning <code>part2</code>.
-        *
-        * @param message the raw HTTP response message
-        * @return the extracted part
-        */
-       public static String parseHttpMessage(final String message){
-               final int indexOfParen=message.indexOf(')');
-               if(indexOfParen==-1)
-                       return message;
-               if(indexOfParen == message.length()-1)
-                       return toNonNull(message.substring(1, indexOfParen));
-               return toNonNull(message.substring(indexOfParen+2));
-       }
-
        /**
         * Splits a string into words.
         *
This page took 0.026038 seconds and 4 git commands to generate.