Removed unused method in Html.java

This commit is contained in:
Risto Lahtela 2021-01-31 10:02:31 +02:00
parent 6e340073a2
commit 388aae1bdc

View File

@ -22,7 +22,6 @@ import org.apache.commons.text.TextStringBuilder;
import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.net.URLEncoder;
import java.util.HashMap;
import java.util.Map;
@ -145,17 +144,6 @@ public enum Html {
return builder.toString();
}
public static String decodeFromURL(String string) {
try {
return StringUtils.replace(
URLDecoder.decode(string, "UTF-8"),
" ", "+" // Decoding replaces + with spaces
);
} catch (UnsupportedEncodingException e) {
return string;
}
}
/**
* @return The HTML String
*/