@@ -61,8 +61,6 @@ public abstract class AbstractFlagEncoder implements FlagEncoder {
61
61
// This value determines the maximal possible speed of any road regardless of the maxspeed value
62
62
// lower values allow more compact representation of the routing graph
63
63
protected int maxPossibleSpeed ;
64
- /* Edge Flag Encoder fields */
65
- private long nodeBitMask ;
66
64
private boolean blockByDefault = true ;
67
65
private boolean blockFords = true ;
68
66
private boolean registered ;
@@ -140,23 +138,11 @@ public ConditionalTagInspector getConditionalTagInspector() {
140
138
return conditionalTagInspector ;
141
139
}
142
140
143
- /**
144
- * Defines the bits for the node flags, which are currently used for barriers only.
145
- * <p>
146
- *
147
- * @return incremented shift value pointing behind the last used bit
148
- */
149
- public int defineNodeBits (int index , int shift ) {
150
- return shift ;
151
- }
152
-
153
141
/**
154
142
* Defines bits used for edge flags used for access, speed etc.
155
- *
156
- * @return incremented shift value pointing behind the last used bit
157
143
*/
158
144
public void createEncodedValues (List <EncodedValue > registerNewEncodedValue , String prefix , int index ) {
159
- // define the first 2 speedBits in flags for routing
145
+ // define the first 2 bits in flags for access
160
146
registerNewEncodedValue .add (accessEnc = new SimpleBooleanEncodedValue (EncodingManager .getKey (prefix , "access" ), true ));
161
147
roundaboutEnc = getBooleanEncodedValue (Roundabout .KEY );
162
148
encoderBit = 1L << index ;
@@ -389,15 +375,6 @@ protected double getFerrySpeed(ReaderWay way) {
389
375
}
390
376
}
391
377
392
- void setNodeBitMask (int usedBits , int shift ) {
393
- nodeBitMask = (1L << usedBits ) - 1 ;
394
- nodeBitMask <<= shift ;
395
- }
396
-
397
- long getNodeBitMask () {
398
- return nodeBitMask ;
399
- }
400
-
401
378
public final DecimalEncodedValue getAverageSpeedEnc () {
402
379
if (avgSpeedEnc == null )
403
380
throw new NullPointerException ("FlagEncoder " + toString () + " not yet initialized" );
0 commit comments