فهرست منبع

refactor(video): 移除未使用的协商SSRC重载

Kazerin 3 هفته پیش
والد
کامیت
cf05cfda38
1فایلهای تغییر یافته به همراه0 افزوده شده و 14 حذف شده
  1. 0 14
      video-service/src/main/java/com/zksy/video/lifecycle/VideoStopReceipts.java

+ 0 - 14
video-service/src/main/java/com/zksy/video/lifecycle/VideoStopReceipts.java

@@ -88,20 +88,6 @@ public class VideoStopReceipts {
         return snapshot != null && Objects.equals(nodeId, snapshot.nodeId) ? snapshot : null;
     }
 
-    /** Record a real device renegotiation without changing the original pool number.
-     * Only the holder of the original allocation token may add it. */
-    public boolean recordNegotiatedSsrc(String nodeId, String stream, String allocationToken, String poolSsrc, String negotiatedSsrc) {
-        if (nodeId == null || stream == null || allocationToken == null || negotiatedSsrc == null) return false;
-        return update(nodeId, stream, snapshot -> {
-            Allocation allocation = snapshot.allocation;
-            if (allocation == null || !Objects.equals(allocation.token, allocationToken)) return null;
-            if (poolSsrc != null && !Objects.equals(allocation.ssrc, poolSsrc)) return null;
-            if (allocation.negotiatedSsrc != null && !Objects.equals(allocation.negotiatedSsrc, negotiatedSsrc)) return null;
-            allocation.negotiatedSsrc = negotiatedSsrc;
-            return snapshot;
-        }) != null;
-    }
-
     /** Legacy negotiation happens before any stop receipt exists; create the original allocation
      * from the typed handle and remember that its pool number was already returned by that path. */
     public boolean recordNegotiatedSsrc(String nodeId, String stream, SSRCInfo original, String negotiatedSsrc,