Skip to content

Commit

Permalink
Remove trip_bikes_allowed
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardehrenfried committed Nov 2, 2024
1 parent 991e50b commit 2750a04
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
15 changes: 0 additions & 15 deletions onebusaway-gtfs/src/main/java/org/onebusaway/gtfs/model/Trip.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,6 @@ public final class Trip extends IdentityBean<AgencyAndId> {
private Double safeDurationOffset;


@Deprecated
@CsvField(optional = true, defaultValue = "0")
private int tripBikesAllowed = 0;

/**
* 0 = unknown / unspecified, 1 = bikes allowed, 2 = bikes NOT allowed
*/
Expand Down Expand Up @@ -131,7 +127,6 @@ public Trip(Trip obj) {
this.meanDurationOffset = obj.meanDurationOffset;
this.safeDurationFactor = obj.safeDurationFactor;
this.safeDurationOffset = obj.safeDurationOffset;
this.tripBikesAllowed = obj.tripBikesAllowed;
this.bikesAllowed = obj.bikesAllowed;
this.carsAllowed = obj.carsAllowed;
this.fareId = obj.fareId;
Expand Down Expand Up @@ -245,16 +240,6 @@ public void setSafeDurationOffset(Double safeDurationOffset) {
this.safeDurationOffset = safeDurationOffset;
}

@Deprecated
public void setTripBikesAllowed(int tripBikesAllowed) {
this.tripBikesAllowed = tripBikesAllowed;
}

@Deprecated
public int getTripBikesAllowed() {
return tripBikesAllowed;
}

/**
* @return 0 = unknown / unspecified, 1 = bikes allowed, 2 = bikes NOT allowed
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,6 @@ public void testAllFields() throws IOException {
assertEquals("1", trip.getDirectionId());
assertEquals("B1", trip.getBlockId());
assertEquals(new AgencyAndId("1", "SHP1"), trip.getShapeId());
assertEquals(1, trip.getTripBikesAllowed());
assertEquals(2, trip.getBikesAllowed());
assertEquals(1, trip.getCarsAllowed());
assertEquals(1, trip.getWheelchairAccessible());
Expand Down

0 comments on commit 2750a04

Please sign in to comment.