You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by cz...@apache.org on 2011/07/14 13:16:47 UTC
svn commit: r1146652 -
/felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/internal/misc/ConfigurationRender.java
Author: cziegeler
Date: Thu Jul 14 11:16:47 2011
New Revision: 1146652
URL: http://svn.apache.org/viewvc?rev=1146652&view=rev
Log:
Remove unused code
Modified:
felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/internal/misc/ConfigurationRender.java
Modified: felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/internal/misc/ConfigurationRender.java
URL: http://svn.apache.org/viewvc/felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/internal/misc/ConfigurationRender.java?rev=1146652&r1=1146651&r2=1146652&view=diff
==============================================================================
--- felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/internal/misc/ConfigurationRender.java (original)
+++ felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/internal/misc/ConfigurationRender.java Thu Jul 14 11:16:47 2011
@@ -19,7 +19,8 @@ package org.apache.felix.webconsole.inte
import java.io.*;
import java.net.URL;
-import java.text.*;
+import java.text.DateFormat;
+import java.text.MessageFormat;
import java.util.*;
import java.util.zip.*;
@@ -51,14 +52,6 @@ public class ConfigurationRender extends
private static final Locale DEFAULT = Locale.ENGLISH;
/**
- * Formatter pattern to generate a relative path for the generation
- * of the plain text or zip file representation of the status. The file
- * name consists of a base name and the current time of status generation.
- */
- private static final SimpleDateFormat FILE_NAME_FORMAT = new SimpleDateFormat( "'" + LABEL
- + "/configuration-status-'yyyyMMdd'-'HHmmZ" );
-
- /**
* Formatter pattern to render the current time of status generation.
*/
private static final DateFormat DISPLAY_DATE_FORMAT = DateFormat.getDateTimeInstance( DateFormat.LONG,
@@ -207,15 +200,6 @@ public class ConfigurationRender extends
pw.print("<button type=\"button\" class=\"downloadZip\" style=\"float: right; margin-right: 30px; margin-top: 5px;\">Download Zip</button>");
pw.print("<button type=\"button\" class=\"downloadTxt\" style=\"float: right; margin-right: 30px; margin-top: 5px;\">Download Text</button>");
-/* synchronized ( FILE_NAME_FORMAT )
- {
- String fileName = FILE_NAME_FORMAT.format( currentTime );
- pw.print("<br/>Download as <a href='");
- pw.print(fileName);
- pw.print(".txt'>[Single File]</a> or as <a href='");
- pw.print(fileName);
- pw.println(".zip'>[ZIP]</a>");
- }*/
pw.println("<br/> </p>"); // status line