From a02ccd205fc278047a0700d8328e25ba89ac67d4 Mon Sep 17 00:00:00 2001 From: Leonard Ehrenfried Date: Sat, 2 Nov 2024 21:37:47 +0100 Subject: [PATCH] Remove route_bikes_allowed --- .../main/java/org/onebusaway/gtfs/model/Route.java | 14 -------------- .../gtfs/serialization/GtfsReaderTest.java | 1 - 2 files changed, 15 deletions(-) diff --git a/onebusaway-gtfs/src/main/java/org/onebusaway/gtfs/model/Route.java b/onebusaway-gtfs/src/main/java/org/onebusaway/gtfs/model/Route.java index d5c30bfc..f7695e61 100644 --- a/onebusaway-gtfs/src/main/java/org/onebusaway/gtfs/model/Route.java +++ b/onebusaway-gtfs/src/main/java/org/onebusaway/gtfs/model/Route.java @@ -58,10 +58,6 @@ public final class Route extends IdentityBean { @CsvField(name = "eligibility_restricted", optional = true, defaultValue = "-999") private int eligibilityRestricted = MISSING_VALUE; - - @Deprecated - @CsvField(name="route_bikes_allowed", optional = true, defaultValue = "0") - private int routeBikesAllowed = 0; /** * 0 = unknown / unspecified, 1 = bikes allowed, 2 = bikes NOT allowed @@ -168,16 +164,6 @@ public String getTextColor() { public void setTextColor(String textColor) { this.textColor = textColor; } - - @Deprecated - public int getRouteBikesAllowed() { - return routeBikesAllowed; - } - - @Deprecated - public void setRouteBikesAllowed(int routeBikesAllowed) { - this.routeBikesAllowed = routeBikesAllowed; - } /** * @return 0 = unknown / unspecified, 1 = bikes allowed, 2 = bikes NOT allowed diff --git a/onebusaway-gtfs/src/test/java/org/onebusaway/gtfs/serialization/GtfsReaderTest.java b/onebusaway-gtfs/src/test/java/org/onebusaway/gtfs/serialization/GtfsReaderTest.java index 0ba05c73..cd6d2c59 100644 --- a/onebusaway-gtfs/src/test/java/org/onebusaway/gtfs/serialization/GtfsReaderTest.java +++ b/onebusaway-gtfs/src/test/java/org/onebusaway/gtfs/serialization/GtfsReaderTest.java @@ -193,7 +193,6 @@ public void testAllFields() throws IOException { assertEquals("route desc", route.getDesc()); assertEquals("FF0000", route.getColor()); assertEquals("0000FF", route.getTextColor()); - assertEquals(1, route.getRouteBikesAllowed()); assertEquals(2, route.getBikesAllowed()); assertEquals("http://agency.gov/route", route.getUrl()); assertEquals(100, route.getSortOrder());