Skip to content

Commit 138c8da

Browse files
fix: remove unused CDP helpers
1 parent f8a580f commit 138c8da

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

internal/client/browser.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,6 @@ func (c *Client) WaitForLoad(tabID string, timeoutMs int) (string, error) {
224224

225225
// --- CDP helper ---
226226

227-
func (c *Client) executeCdp(tabID int, method string, params map[string]interface{}) (json.RawMessage, error) {
228-
return c.executeCdpWithTimeout(tabID, method, params, defaultRequestTimeout)
229-
}
230-
231227
func (c *Client) executeCdpWithTimeout(tabID int, method string, params map[string]interface{}, timeout time.Duration) (json.RawMessage, error) {
232228
if params == nil {
233229
params = map[string]interface{}{}
@@ -280,10 +276,6 @@ func (c *Client) cdpWithAttachUntil(tabID int, method string, params map[string]
280276
return c.cdpWithAttachLockedUntil(tabID, method, params, deadline)
281277
}
282278

283-
func (c *Client) cdpWithAttachLocked(tabID int, method string, params map[string]interface{}) (json.RawMessage, error) {
284-
return c.cdpWithAttachLockedUntil(tabID, method, params, time.Time{})
285-
}
286-
287279
func (c *Client) cdpWithAttachLockedUntil(tabID int, method string, params map[string]interface{}, deadline time.Time) (json.RawMessage, error) {
288280
// Detach first to clear any stale debugger state from Chrome
289281
_ = c.detachTabWithTimeout(tabID, requestTimeoutUntil(deadline))

0 commit comments

Comments
 (0)