Remove unused getCaptureEngine

This commit is contained in:
Viktor Liu
2026-04-23 19:09:00 +02:00
parent 3da5c7aad2
commit 33e166fde2

View File

@@ -304,12 +304,6 @@ func (s *Server) cleanupBundleCapture() {
s.bundleCapture = nil
}
func (s *Server) getCaptureEngine() (*internal.Engine, error) {
s.mutex.Lock()
defer s.mutex.Unlock()
return s.getCaptureEngineLocked()
}
// claimCapture reserves the engine's capture slot for sess. Returns
// FailedPrecondition if another capture is already active.
func (s *Server) claimCapture(sess *capture.Session) (*internal.Engine, error) {