From b62856d79737b94dfd7d50ac059b65cee1543e19 Mon Sep 17 00:00:00 2001 From: Tom Copeland Date: Thu, 10 Apr 2003 20:11:18 +0000 Subject: [PATCH] Removed some old files git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1730 51baf565-9d33-0410-a72c-fc3788e3496d --- .../pmd/cpd/CharacterTokenizer.java | 35 ------------------- .../sourceforge/pmd/cpd/LinesTokenizer.java | 24 ------------- 2 files changed, 59 deletions(-) delete mode 100644 pmd/src/net/sourceforge/pmd/cpd/CharacterTokenizer.java delete mode 100644 pmd/src/net/sourceforge/pmd/cpd/LinesTokenizer.java diff --git a/pmd/src/net/sourceforge/pmd/cpd/CharacterTokenizer.java b/pmd/src/net/sourceforge/pmd/cpd/CharacterTokenizer.java deleted file mode 100644 index 5f5707db34..0000000000 --- a/pmd/src/net/sourceforge/pmd/cpd/CharacterTokenizer.java +++ /dev/null @@ -1,35 +0,0 @@ -package net.sourceforge.pmd.cpd; - -import java.io.IOException; -import java.io.Reader; - -public class CharacterTokenizer /*implements Tokenizer*/ { - - /** - * The end of line string for this machine. - */ - protected String EOL = System.getProperty("line.separator", "\n"); - - /** - * You'll probably want to write a test for this before using it - */ - public void tokenize(SourceCode tokens, Reader input) throws IOException { -/* - List lines = new ArrayList(); - StringBuffer sb = new StringBuffer(); - LineNumberReader r = new LineNumberReader(input); - String currentLine; - int position = 0; - while ((currentLine = r.readLine()) != null) { - lines.add(currentLine); - sb.append(currentLine); - sb.append(EOL); - for (int i = 0; i < currentLine.length(); i++) { - tokens.add(new TokenEntry(String.valueOf(currentLine.charAt(i)), position, tokens.getFileName(), lines.size())); - position++; - } - } - tokens.setCode(lines); -*/ - } -} diff --git a/pmd/src/net/sourceforge/pmd/cpd/LinesTokenizer.java b/pmd/src/net/sourceforge/pmd/cpd/LinesTokenizer.java deleted file mode 100644 index 4a3af236fc..0000000000 --- a/pmd/src/net/sourceforge/pmd/cpd/LinesTokenizer.java +++ /dev/null @@ -1,24 +0,0 @@ -package net.sourceforge.pmd.cpd; - -import java.io.IOException; -import java.io.Reader; - -public class LinesTokenizer /*implements Tokenizer*/ { - - public void tokenize(SourceCode tokens, Reader input) throws IOException { -/* - String eol = System.getProperty("line.separator", "\n"); - List lines = new ArrayList(); - StringBuffer sb = new StringBuffer(); - LineNumberReader r = new LineNumberReader(input); - String currentLine; - while ((currentLine = r.readLine()) != null) { - lines.add(currentLine); - sb.append(currentLine); - sb.append(eol); - tokens.add(new TokenEntry(currentLine, tokens.size(), tokens.getFileName(), lines.size())); - } - tokens.setCode(lines); -*/ - } -}