Skip to content

Commit

Permalink
fix: remove unused fields from browser polyfill (#2958)
Browse files Browse the repository at this point in the history
Removes unused imports and properties.
  • Loading branch information
achingbrain authored Feb 13, 2025
1 parent d188511 commit c4e8627
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions packages/transport-tcp/src/tcp.browser.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
import { serviceCapabilities, transportSymbol } from '@libp2p/interface'
import type { TCPComponents, TCPDialEvents, TCPMetrics, TCPOptions } from './index.js'
import type { Logger, Connection, Transport, Listener } from '@libp2p/interface'
import type { TCPDialEvents } from './index.js'
import type { Connection, Transport, Listener } from '@libp2p/interface'
import type { Multiaddr } from '@multiformats/multiaddr'

export class TCP implements Transport<TCPDialEvents> {
private readonly opts: TCPOptions
private readonly metrics?: TCPMetrics
private readonly components: TCPComponents
private readonly log: Logger

constructor () {
throw new Error('TCP connections are not possible in browsers')
}
Expand Down

0 comments on commit c4e8627

Please sign in to comment.