dead code cleanup
Some checks failed
Java CI / build (push) Has been cancelled
Java CI / javadoc-latest (push) Has been cancelled
Java CI / build-java7 (push) Has been cancelled
Java with IzPack Snapshot Setup / setup (push) Has been cancelled
Sync Primary Repository to GitHub Mirror / sync (push) Has been cancelled

This commit is contained in:
zzz
2025-05-13 07:34:57 -04:00
parent 5ece1f47aa
commit 0c642fcf92

View File

@ -134,17 +134,13 @@ public class EepPost extends EepGet {
* @param separator non-null
*/
private static void sendFields(OutputStream out, String separator, Map<String, Object> fields) throws IOException {
boolean first = true;
for (Map.Entry<String, Object> e : fields.entrySet()) {
String field = e.getKey();
Object val = e.getValue();
if (val instanceof File) {
sendFile(out, separator, field, (File)val);
} else {
if (separator == null && !first)
out.write('&');
sendField(out, separator, field, val.toString());
first = false;
}
}
out.write(DataHelper.getUTF8("--" + separator + "--" + CRLF));