Skip to content

Commit c4e8627

Browse files
authored
fix: remove unused fields from browser polyfill (#2958)
Removes unused imports and properties.
1 parent d188511 commit c4e8627

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

packages/transport-tcp/src/tcp.browser.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
import { serviceCapabilities, transportSymbol } from '@libp2p/interface'
2-
import type { TCPComponents, TCPDialEvents, TCPMetrics, TCPOptions } from './index.js'
3-
import type { Logger, Connection, Transport, Listener } from '@libp2p/interface'
2+
import type { TCPDialEvents } from './index.js'
3+
import type { Connection, Transport, Listener } from '@libp2p/interface'
44
import type { Multiaddr } from '@multiformats/multiaddr'
55

66
export class TCP implements Transport<TCPDialEvents> {
7-
private readonly opts: TCPOptions
8-
private readonly metrics?: TCPMetrics
9-
private readonly components: TCPComponents
10-
private readonly log: Logger
11-
127
constructor () {
138
throw new Error('TCP connections are not possible in browsers')
149
}

0 commit comments

Comments
 (0)