removed unused methods

This commit is contained in:
Andreas Schildbach 2012-08-16 15:51:46 +02:00
parent eb2741b03a
commit b5faeadb8b
2 changed files with 0 additions and 40 deletions

View file

@ -25,7 +25,6 @@ import java.util.Set;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import de.schildbach.pte.dto.Line;
import de.schildbach.pte.dto.Location;
import de.schildbach.pte.dto.LocationType;
import de.schildbach.pte.dto.NearbyStationsResult;
@ -228,24 +227,4 @@ public final class BahnProvider extends AbstractHafasProvider
return 0;
}
private static final Pattern P_LINE_NUMBER = Pattern.compile("\\d{2,5}");
@Override
protected final Line parseLineWithoutType(final String line)
{
if ("Schw-B".equals(line)) // Schwebebahn, gilt als "Straßenbahn besonderer Bauart"
return newLine('T', line);
if (P_LINE_RUSSIA.matcher(line).matches())
return newLine('R', line);
if (P_LINE_NUMBER.matcher(line).matches())
return newLine('?', line);
if ("---".equals(line))
return newLine('?', line);
return super.parseLineWithoutType(line);
}
}

View file

@ -19,10 +19,7 @@ package de.schildbach.pte;
import java.io.IOException;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import de.schildbach.pte.dto.Line;
import de.schildbach.pte.dto.Location;
import de.schildbach.pte.dto.LocationType;
import de.schildbach.pte.dto.NearbyStationsResult;
@ -197,22 +194,6 @@ public class PlProvider extends AbstractHafasProvider
return xmlMLcReq(constraint);
}
private static final Pattern P_NORMALIZE_LINE_RUSSIA = Pattern.compile("(?:D\\s*)?(\\d{1,3}(?:[A-Z]{2}|Y))");
private static final Pattern P_NORMALIZE_LINE_NUMBER = Pattern.compile("\\d{2,5}");
@Override
protected Line parseLineWithoutType(final String line)
{
final Matcher mRussia = P_NORMALIZE_LINE_RUSSIA.matcher(line);
if (mRussia.matches())
return newLine('R', mRussia.group(1));
if (P_NORMALIZE_LINE_NUMBER.matcher(line).matches())
return newLine('R', line);
return super.parseLineWithoutType(line);
}
@Override
protected char normalizeType(final String type)
{