nanohttpd: refactor: remove Response.newFixedLength(String)

This commit is contained in:
Haowei Wen 2020-08-26 20:10:46 +08:00
parent 514f2829e2
commit 61b787aa4d
No known key found for this signature in database
GPG key ID: 5BC167F73EA558E4
2 changed files with 0 additions and 13 deletions

View file

@ -205,12 +205,6 @@ public abstract class NanoHTTPD {
* Common MIME type for dynamic content: plain text
*/
public static final String MIME_PLAINTEXT = "text/plain";
/**
* Common MIME type for dynamic content: html
*/
public static final String MIME_HTML = "text/html";
/**
* logger to log to.
*/

View file

@ -278,13 +278,6 @@ public class Response implements Closeable {
this.status = status;
}
/**
* Create a text response with known length.
*/
public static Response newFixedLength(String msg) {
return newFixedLength(Status.OK, NanoHTTPD.MIME_HTML, msg);
}
/**
* Create a text response with known length.
*/