diff --git a/core/function-impl/mogo-core-function-v2x/src/main/java/com/mogo/eagle/core/function/v2x/events/scenario/scene/airoad/AiRoadMarker.kt b/core/function-impl/mogo-core-function-v2x/src/main/java/com/mogo/eagle/core/function/v2x/events/scenario/scene/airoad/AiRoadMarker.kt index 411ab19fa7..fbd569d4c4 100644 --- a/core/function-impl/mogo-core-function-v2x/src/main/java/com/mogo/eagle/core/function/v2x/events/scenario/scene/airoad/AiRoadMarker.kt +++ b/core/function-impl/mogo-core-function-v2x/src/main/java/com/mogo/eagle/core/function/v2x/events/scenario/scene/airoad/AiRoadMarker.kt @@ -36,10 +36,6 @@ object AiRoadMarker { private val marker by lazy { AtomicReference() } - private val curStopLine by lazy { AtomicReference() } - - private val lastStopLine by lazy { AtomicReference() } - private val carLocation by lazy { AtomicReference>() } private val overlayManager by lazy { MogoOverlayManager.getInstance() } @@ -130,14 +126,12 @@ object AiRoadMarker { if (oldRoadId != roadId) { if (hasCrossRoad) { hasCrossRoad = false - lastStopLine.set(curStopLine.get()) } } this.roadId = roadId } override fun onStopLineInfo(info: StopLine) { Logger.d(TAG, "--- onStopLineInfo --- info: $info") - curStopLine.set(info) if (!hasCrossRoad) { hasCrossRoad = true } @@ -190,6 +184,7 @@ object AiRoadMarker { CallerMapRoadListenerManager.unRegisterRoadListener(TAG) CallerMapLocationListenerManager.removeListener(TAG) pool.shutdownNow() + removeRedLine() }