@@ -327,20 +327,6 @@ class DirectedEdge {
327
327
*/
328
328
void set_bridge (const bool bridge);
329
329
330
- /* *
331
- * Is this edge indoor?
332
- * @return Returns true if this edge is indoor, false if not (outdoor).
333
- */
334
- bool indoor () const {
335
- return indoor_;
336
- }
337
-
338
- /* *
339
- * Sets the flag indicating this edge is indoor.
340
- * @param indoor True if the edge is indoor, false if not (outdoor).
341
- */
342
- void set_indoor (const bool indoor);
343
-
344
330
/* *
345
331
* Get the HOV type (see graphconstants.h).
346
332
*/
@@ -564,17 +550,6 @@ class DirectedEdge {
564
550
return static_cast <Use>(use_);
565
551
}
566
552
567
- /* *
568
- * Evaluates a basic set of conditions to determine if this directed edge is a valid potential
569
- * member of a shortcut. This is used while forming and resolving shortcuts.
570
- * @return true if the edge is not a shortcut, not related to transit and not under construction
571
- */
572
- bool can_form_shortcut () const {
573
- return !is_shortcut () && !bss_connection () && use () != Use::kTransitConnection &&
574
- use () != Use::kEgressConnection && use () != Use::kPlatformConnection &&
575
- use () != Use::kConstruction ;
576
- }
577
-
578
553
/* *
579
554
* Sets the specialized use type of this edge.
580
555
* @param use Use of this edge.
@@ -1087,29 +1062,6 @@ class DirectedEdge {
1087
1062
return superseded_;
1088
1063
}
1089
1064
1090
- #ifdef _WIN32
1091
- // TODO: Workaround for missing strings.h on Windows. Replace with platform independent
1092
- // std::countr_zero in C++20 (see https://en.cppreference.com/w/cpp/numeric/countr_zero).
1093
- int ffs (int mask) const {
1094
- if (0 == mask)
1095
- return 0 ;
1096
-
1097
- int idx;
1098
- for (idx = 1 ; !(mask & 1 ); ++idx)
1099
- mask >>= 1 ;
1100
- return idx;
1101
- }
1102
- #endif
1103
-
1104
- /* *
1105
- * Unlike superseded(), this does not return the raw mask but the shortcut index
1106
- * that was originally passed to set_superseded().
1107
- * @return Returns the index of the set bit in the superseded mask.
1108
- */
1109
- uint32_t superseded_idx () const {
1110
- return ffs (superseded_);
1111
- }
1112
-
1113
1065
/* *
1114
1066
* Set the mask for whether this edge is superseded by a shortcut edge.
1115
1067
* Superseded edges can be skipped unless downward transitions are allowed.
@@ -1159,20 +1111,6 @@ class DirectedEdge {
1159
1111
return bss_connection_;
1160
1112
}
1161
1113
1162
- /* *
1163
- * Set the flag indicating whether the edge is lit
1164
- * @param lit the edge's lit state
1165
- */
1166
- void set_lit (const bool lit);
1167
-
1168
- /* *
1169
- * Is the edge lit?
1170
- * @return Returns the edge's lit state
1171
- */
1172
- bool lit () const {
1173
- return lit_;
1174
- }
1175
-
1176
1114
/* *
1177
1115
* Create a json object representing this edge
1178
1116
* @return Returns the json object
@@ -1239,9 +1177,7 @@ class DirectedEdge {
1239
1177
uint64_t stop_sign_ : 1 ; // Stop sign at end of the directed edge
1240
1178
uint64_t yield_sign_ : 1 ; // Yield/give way sign at end of the directed edge
1241
1179
uint64_t hov_type_ : 1 ; // if (is_hov_only()==true), this means (HOV2=0, HOV3=1)
1242
- uint64_t indoor_ : 1 ; // Is this edge indoor
1243
- uint64_t lit_ : 1 ; // Is the edge lit?
1244
- uint64_t spare4_ : 4 ;
1180
+ uint64_t spare4_ : 6 ;
1245
1181
1246
1182
// 5th 8-byte word
1247
1183
uint64_t turntype_ : 24 ; // Turn type (see graphconstants.h)
0 commit comments