Skip to content

Commit 3ee62de

Browse files
committed
remove unused method
Signed-off-by: Davanum Srinivas <[email protected]>
1 parent cbb7c28 commit 3ee62de

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

pkg/streaming/portforward/httpstream.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -164,16 +164,6 @@ func (h *httpStreamHandler) monitorStreamPair(p *httpStreamPair, timeout <-chan
164164
h.removeStreamPair(p.requestID)
165165
}
166166

167-
// hasStreamPair returns a bool indicating if a stream pair for requestID
168-
// exists.
169-
func (h *httpStreamHandler) hasStreamPair(requestID string) bool {
170-
h.streamPairsLock.RLock()
171-
defer h.streamPairsLock.RUnlock()
172-
173-
_, ok := h.streamPairs[requestID]
174-
return ok
175-
}
176-
177167
// removeStreamPair removes the stream pair identified by requestID from streamPairs.
178168
func (h *httpStreamHandler) removeStreamPair(requestID string) {
179169
h.streamPairsLock.Lock()

0 commit comments

Comments
 (0)