提交 4192720f 编写于 作者: K Kohsuke Kawaguchi

Unused code

上级 680dd4a2
......@@ -49,7 +49,6 @@ import org.kohsuke.stapler.StaplerRequest;
import org.kohsuke.stapler.StaplerResponse;
import org.kohsuke.stapler.export.Exported;
import org.kohsuke.stapler.export.ExportedBean;
import org.kohsuke.stapler.export.Flavor;
/**
* Keeps a list of the parameters defined for a project.
......@@ -189,12 +188,6 @@ public class ParametersDefinitionProperty extends JobProperty<Job<?, ?>>
}
}
private boolean requestWantsJson(StaplerRequest req) {
String a = req.getHeader("Accept");
if (a==null) return false;
return !a.contains("text/html") && a.contains("application/json");
}
/**
* Gets the {@link ParameterDefinition} of the given name, if any.
*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册