You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by wh...@apache.org on 2015/02/19 20:35:46 UTC
hadoop git commit: HADOOP-11231. Remove dead code in ServletUtil.
Contributed by Li Lu.
Repository: hadoop
Updated Branches:
refs/heads/branch-2 cd5eb9c1d -> da52fdb99
HADOOP-11231. Remove dead code in ServletUtil. Contributed by Li Lu.
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/da52fdb9
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/da52fdb9
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/da52fdb9
Branch: refs/heads/branch-2
Commit: da52fdb999ad173850e2912bc0394eb9a78dc172
Parents: cd5eb9c
Author: Haohui Mai <wh...@apache.org>
Authored: Fri Oct 24 14:19:52 2014 -0700
Committer: Haohui Mai <wh...@apache.org>
Committed: Thu Feb 19 11:35:35 2015 -0800
----------------------------------------------------------------------
hadoop-common-project/hadoop-common/CHANGES.txt | 2 +
.../org/apache/hadoop/util/ServletUtil.java | 40 --------------------
2 files changed, 2 insertions(+), 40 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hadoop/blob/da52fdb9/hadoop-common-project/hadoop-common/CHANGES.txt
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt
index 3f41cbc..299c4b7 100644
--- a/hadoop-common-project/hadoop-common/CHANGES.txt
+++ b/hadoop-common-project/hadoop-common/CHANGES.txt
@@ -227,6 +227,8 @@ Release 2.7.0 - UNRELEASED
HADOOP-11506. Configuration variable expansion regex expensive for long
values. (Gera Shegalov via gera)
+ HADOOP-11231. Remove dead code in ServletUtil. (Li Lu via wheat9)
+
BUG FIXES
HADOOP-11512. Use getTrimmedStrings when reading serialization keys
http://git-wip-us.apache.org/repos/asf/hadoop/blob/da52fdb9/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/ServletUtil.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/ServletUtil.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/ServletUtil.java
index 48624cc..02f5401 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/ServletUtil.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/ServletUtil.java
@@ -87,46 +87,6 @@ public class ServletUtil {
public static String htmlFooter() {
return HTML_TAIL;
}
-
- /**
- * Generate the percentage graph and returns HTML representation string
- * of the same.
- *
- * @param perc The percentage value for which graph is to be generated
- * @param width The width of the display table
- * @return HTML String representation of the percentage graph
- * @throws IOException
- */
- public static String percentageGraph(int perc, int width) throws IOException {
- assert perc >= 0; assert perc <= 100;
-
- StringBuilder builder = new StringBuilder();
-
- builder.append("<table border=\"1px\" width=\""); builder.append(width);
- builder.append("px\"><tr>");
- if(perc > 0) {
- builder.append("<td cellspacing=\"0\" class=\"perc_filled\" width=\"");
- builder.append(perc); builder.append("%\"></td>");
- }if(perc < 100) {
- builder.append("<td cellspacing=\"0\" class=\"perc_nonfilled\" width=\"");
- builder.append(100 - perc); builder.append("%\"></td>");
- }
- builder.append("</tr></table>");
- return builder.toString();
- }
-
- /**
- * Generate the percentage graph and returns HTML representation string
- * of the same.
- * @param perc The percentage value for which graph is to be generated
- * @param width The width of the display table
- * @return HTML String representation of the percentage graph
- * @throws IOException
- */
- public static String percentageGraph(float perc, int width) throws IOException {
- return percentageGraph((int)perc, width);
- }
-
/**
* Escape and encode a string regarded as within the query component of an URI.
* @param value the value to encode