Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LIRR / MNR - Remove stop description #174

Merged
merged 1 commit into from
Nov 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>dev.katsute</groupId>
<artifactId>onemta</artifactId>
<version>2.0.5</version>
<version>2.1.0</version>

<profiles>
<profile>
Expand Down
7 changes: 0 additions & 7 deletions src/main/java/dev/katsute/onemta/MTASchema_LIRR.java
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,6 @@ static Stop asStop(final MTA mta, final int stop_id){
private final Integer stopID = stop_id;
private final String stopCode = row.get(csv.getHeaderIndex("stop_code"));
private final String stopName = row.get(csv.getHeaderIndex("stop_name"));
private final String stopDesc = row.get(csv.getHeaderIndex("stop_desc"));

private final Double stopLat = Double.valueOf(row.get(csv.getHeaderIndex("stop_lat")));
private final Double stopLon = Double.valueOf(row.get(csv.getHeaderIndex("stop_lon")));
Expand All @@ -222,11 +221,6 @@ public final String getStopName(){
return stopName;
}

@Override
public final String getStopDescription(){
return stopDesc;
}

@Override
public final Double getLatitude(){
return stopLat;
Expand Down Expand Up @@ -332,7 +326,6 @@ public final String toString(){
"stopID=" + stopID +
", stopCode='" + stopCode + '\'' +
", stopName='" + stopName + '\'' +
", stopDesc='" + stopDesc + '\'' +
", stopLat=" + stopLat +
", stopLon=" + stopLon +
", wheelchairAccessible=" + wheelchairAccessible +
Expand Down
7 changes: 0 additions & 7 deletions src/main/java/dev/katsute/onemta/MTASchema_MNR.java
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@ static Stop asStop(final MTA mta, final int stop_id){
private final Integer stopID = stop_id;
private final String stopCode = row.get(csv.getHeaderIndex("stop_code"));
private final String stopName = row.get(csv.getHeaderIndex("stop_name"));
private final String stopDesc = row.get(csv.getHeaderIndex("stop_desc"));

private final Double stopLat = Double.valueOf(row.get(csv.getHeaderIndex("stop_lat")));
private final Double stopLon = Double.valueOf(row.get(csv.getHeaderIndex("stop_lon")));
Expand All @@ -208,11 +207,6 @@ public final String getStopName(){
return stopName;
}

@Override
public final String getStopDescription(){
return stopDesc;
}

@Override
public final Double getLatitude(){
return stopLat;
Expand Down Expand Up @@ -307,7 +301,6 @@ public final String toString(){
"stopID=" + stopID +
", stopCode='" + stopCode + '\'' +
", stopName='" + stopName + '\'' +
", stopDesc='" + stopDesc + '\'' +
", stopLat=" + stopLat +
", stopLon=" + stopLon +
", wheelchairAccessible=" + wheelchairAccessible +
Expand Down
9 changes: 0 additions & 9 deletions src/main/java/dev/katsute/onemta/railroad/LIRR.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,6 @@ public abstract static class Stop extends TransitStop<Integer,Vehicle,Alert> {
*/
public abstract String getStopCode();

/**
* Returns the stop description.
*
* @return route description
*
* @since 1.0.0
*/
public abstract String getStopDescription();

/**
* Returns if the stop is wheelchair accessible.
*
Expand Down
9 changes: 0 additions & 9 deletions src/main/java/dev/katsute/onemta/railroad/MNR.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,6 @@ public abstract static class Stop extends TransitStop<Integer,Vehicle,Alert> {
*/
public abstract String getStopCode();

/**
* Returns the stop description.
*
* @return route description
*
* @since 1.0.0
*/
public abstract String getStopDescription();

/**
* Returns if the stop is wheelchair accessible.
*
Expand Down
1 change: 0 additions & 1 deletion src/test/java/dev/katsute/onemta/lirr/TestLIRRStop.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ final void testVehicles(){
@Test
final void testStop(){
assertNotNull(stop.getStopCode());
assertNotNull(stop.getStopDescription());
assertNotNull(stop.hasWheelchairBoarding());
}

Expand Down
1 change: 0 additions & 1 deletion src/test/java/dev/katsute/onemta/mnr/TestMNRStop.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ final void testVehicles(){
@Test
final void testStop(){
assertNotNull(stop.getStopCode());
assertNotNull(stop.getStopDescription());
assertNotNull(stop.hasWheelchairBoarding());
}

Expand Down
Loading