Author: rdonkin
Date: Fri Dec 6 17:55:15 2013
New Revision: 1548623
URL: http://svn.apache.org/r1548623
Log:
Dead Code Zone.
Modified:
creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/analysis/license/FullTextMatchingLicense.java
Modified:
creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/analysis/license/FullTextMatchingLicense.java
URL:
http://svn.apache.org/viewvc/creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/analysis/license/FullTextMatchingLicense.java?rev=1548623&r1=1548622&r2=1548623&view=diff
==============================================================================
---
creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/analysis/license/FullTextMatchingLicense.java
(original)
+++
creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/analysis/license/FullTextMatchingLicense.java
Fri Dec 6 17:55:15 2013
@@ -126,19 +126,7 @@ public class FullTextMatchingLicense ext
reportOnLicense(subject);
// we found a match
result = true;
- } else {
- // buffer contains first line but does not
contain full text
- // It's possible that the buffer contains the
first line again
- int offset =
buffer.substring(1).toString().indexOf(firstLine);
- if (offset >= ZERO) {
- // first line found again
- buffer.delete(0, offset); // reset
buffer to the new start
- } else {
- // buffer does not even contain first
line, so cannot
- // be used to match full text
- init();
- }
- }
+ }
}
return result;
}