dion 2002/10/26 01:09:16
Modified: src/plugins-build/xdoc/src/java/org/apache/maven
DVSLBean.java
src/plugins-build/jxr/src/java/org/apache/maven/jxr/util
SimpleWordTokenizer.java
src/plugins-build/codeswitcher/src/java/org/apache/maven
CodeSwitcher.java
src/plugins-build/reactor/src/java/org/apache/maven/reactor
DependencyResolver.java
src/plugins-build/struts/src/java/org/apache/maven/struts
Struts10WarValidator.java
Log:
Remove unused code
Revision Changes Path
1.7 +0 -3
jakarta-turbine-maven/src/plugins-build/xdoc/src/java/org/apache/maven/DVSLBean.java
Index: DVSLBean.java
===================================================================
RCS file:
/home/cvs/jakarta-turbine-maven/src/plugins-build/xdoc/src/java/org/apache/maven/DVSLBean.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- DVSLBean.java 3 Oct 2002 17:35:18 -0000 1.6
+++ DVSLBean.java 26 Oct 2002 08:09:16 -0000 1.7
@@ -158,8 +158,6 @@
private String targetExtension = ".html";
private String outputEncoding = "UTF-8";
- private Path classpath = null;
-
private boolean force = false;
private Vector toolAttr = new Vector();
@@ -696,7 +694,6 @@
File outFile = null;
File inFile = null;
- long styleSheetLastModified = stylesheet.lastModified();
inFile = new File(baseDir, xmlFile);
int dotPos = xmlFile.lastIndexOf('.');
1.3 +3 -3
jakarta-turbine-maven/src/plugins-build/jxr/src/java/org/apache/maven/jxr/util/SimpleWordTokenizer.java
Index: SimpleWordTokenizer.java
===================================================================
RCS file:
/home/cvs/jakarta-turbine-maven/src/plugins-build/jxr/src/java/org/apache/maven/jxr/util/SimpleWordTokenizer.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- SimpleWordTokenizer.java 2 Aug 2002 02:21:34 -0000 1.2
+++ SimpleWordTokenizer.java 26 Oct 2002 08:09:16 -0000 1.3
@@ -1,6 +1,6 @@
/*
*
- * Copyright (c) 1998 The Java Apache Project. All rights reserved.
+ * Copyright (c) 1998 The Java Apache Project. ; All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -83,7 +83,7 @@
return new StringEntry[0];
}
- return tokenize(line, start, line.length());
+ return tokenize(line, start);
}
@@ -118,7 +118,7 @@
}
/** Internal impl. Specify the start and end. */
- private static StringEntry[] tokenize(String line, int start, int end)
+ private static StringEntry[] tokenize(String line, int start)
{
Vector words = new Vector();
1.4 +0 -159
jakarta-turbine-maven/src/plugins-build/codeswitcher/src/java/org/apache/maven/CodeSwitcher.java
Index: CodeSwitcher.java
===================================================================
RCS file:
/home/cvs/jakarta-turbine-maven/src/plugins-build/codeswitcher/src/java/org/apache/maven/CodeSwitcher.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- CodeSwitcher.java 11 Sep 2002 04:03:09 -0000 1.3
+++ CodeSwitcher.java 26 Oct 2002 08:09:16 -0000 1.4
@@ -119,14 +119,6 @@
process();
}
- private void printList(List list)
- {
- for (Iterator i = list.iterator(); i.hasNext();)
- {
- System.out.println(i.next());
- }
- }
-
/**
* Set the on switches
*/
@@ -185,19 +177,6 @@
/**
* Method declaration
- */
- private void printSwitches()
- {
- System.out.println("Used labels:");
-
- for (int i = 0; i < switches.size(); i++)
- {
- System.out.println((String) (switches.get(i)));
- }
- }
-
- /**
- * Method declaration
*
* @param s
* @return
@@ -376,144 +355,6 @@
printError(e.getMessage());
return false;
- }
- }
-
- /**
- * Method declaration
- *
- * @param name
- */
- private void removeTest(String name)
- {
-
- File f = new File(name);
- File fnew = new File(name + ".new");
-
- try
- {
- LineNumberReader read = new LineNumberReader(new FileReader(f));
- FileWriter write = new FileWriter(fnew);
-
- while (true)
- {
- String line = read.readLine();
-
- if (line == null)
- {
- break;
- }
-
- if (line.startsWith("Profile.visit("))
- {
- int s = line.indexOf(';');
-
- line = line.substring(s + 1);
- }
-
- write.write(line + ls);
- }
-
- read.close();
- write.flush();
- write.close();
-
- File fbak = new File(name + ".bak");
-
- fbak.delete();
- f.renameTo(fbak);
-
- File fcopy = new File(name);
-
- fnew.renameTo(fcopy);
- fbak.delete();
- }
- catch (Exception e)
- {
- printError(e.getMessage());
- }
- }
-
- /**
- * Method declaration
- *
- * @param name
- * @param maxline
- */
- private void addTest(String name, int maxline)
- {
-
- File f = new File(name);
- File fnew = new File(name + ".new");
- String key = name;
-
- key = key.replace('\\', '.');
-
- try
- {
- LineNumberReader read = new LineNumberReader(new FileReader(f));
- FileWriter write = new FileWriter(fnew);
- int l = 0;
- boolean longline = false;
-
- while (true)
- {
- String line = read.readLine();
-
- if (line == null)
- {
- break;
- }
-
- if (line.startsWith(" "))
- {
- int spaces = 0;
-
- for (; spaces < line.length(); spaces++)
- {
- if (line.charAt(spaces) != ' ')
- {
- break;
- }
- }
-
- if (spaces > 3 && testLine(line) && !longline)
- {
- line = "org.hsqldb.test.Profile.visit(\"" + key
- + "\"," + l + "," + maxline + ");" + line;
-
- l++;
- }
- else if (isLongline(line))
- {
- longline = true;
- }
- else
- {
- longline = false;
- }
- }
-
- write.write(line + ls);
- }
-
- read.close();
- write.flush();
- write.close();
-
- File fbak = new File(name + ".bak");
-
- fbak.delete();
- f.renameTo(fbak);
-
- File fcopy = new File(name);
-
- fnew.renameTo(fcopy);
- fbak.delete();
- }
- catch (Exception e)
- {
- printError(e.getMessage());
}
}
1.4 +0 -1
jakarta-turbine-maven/src/plugins-build/reactor/src/java/org/apache/maven/reactor/DependencyResolver.java
Index: DependencyResolver.java
===================================================================
RCS file:
/home/cvs/jakarta-turbine-maven/src/plugins-build/reactor/src/java/org/apache/maven/reactor/DependencyResolver.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- DependencyResolver.java 19 Oct 2002 09:37:39 -0000 1.3
+++ DependencyResolver.java 26 Oct 2002 08:09:16 -0000 1.4
@@ -73,7 +73,6 @@
* Dependency graph
*/
private DependencyGraph dependencyGraph;
- private String projectsDirectory;
private List projects;
private HashMap projectDeps;
private boolean graphBuilt;
1.5 +1 -5
jakarta-turbine-maven/src/plugins-build/struts/src/java/org/apache/maven/struts/Struts10WarValidator.java
Index: Struts10WarValidator.java
===================================================================
RCS file:
/home/cvs/jakarta-turbine-maven/src/plugins-build/struts/src/java/org/apache/maven/struts/Struts10WarValidator.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- Struts10WarValidator.java 29 Aug 2002 23:48:01 -0000 1.4
+++ Struts10WarValidator.java 26 Oct 2002 08:09:16 -0000 1.5
@@ -119,10 +119,6 @@
{
//~ Instance variables �����������������������������������������������������
- /** The name of the action servlet as specified in web.xml */
- private String actionServletName =
- Struts10WarFile.DEFAULT_ACTIONSERVLET_NAME;
-
/**
* the location within the war of the Struts configuration file. By default
* this takes the value of the {@link Struts10WarFile#DEFAULT_CONFIG
--
To unsubscribe, e-mail: <mailto:turbine-maven-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:turbine-maven-dev-help@;jakarta.apache.org>