Skip to content

Commit

Permalink
Remove initializers from protocols
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr. Brandon Wiley committed Nov 5, 2021
1 parent 82602c8 commit 1aa2a55
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions Sources/Transmission/Connection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ import Logging

public protocol Connection
{
init?(host: String, port: Int, type: ConnectionType, logger: Logger?)
init?(transport: Transport.Connection, logger: Logger?)

// Reads exactly size bytes
func read(size: Int) -> Data?

Expand Down
1 change: 0 additions & 1 deletion Sources/Transmission/Listener.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,5 @@ import Logging

public protocol Listener
{
init?(port: Int, type: ConnectionType, logger: Logger?)
func accept() -> Transmission.Connection
}

0 comments on commit 1aa2a55

Please sign in to comment.