Skip to content

Commit

Permalink
Removed unused method.
Browse files Browse the repository at this point in the history
  • Loading branch information
fubar-coder committed Jan 21, 2019
1 parent 9f20d35 commit b290585
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
10 changes: 1 addition & 9 deletions src/FubarDev.FtpServer.Abstractions/IPasvListenerFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,6 @@ namespace FubarDev.FtpServer
/// </summary>
public interface IPasvListenerFactory
{
/// <summary>
/// Create a new TcpListener for the given connection.
/// </summary>
/// <param name="connection">connection on which to create the tcp listener.</param>
/// <exception cref="SocketException">Network error.</exception>
/// <returns>A TcpListener.</returns>
Task<IPasvListener> CreateTcpListener(IFtpConnection connection);

/// <summary>
/// Create a new TcpListener for the given connection.
/// </summary>
Expand All @@ -31,6 +23,6 @@ public interface IPasvListenerFactory
/// <exception cref="SocketException">Network error, such as no free port.</exception>
/// <exception cref="ArgumentOutOfRangeException">The chosen port was not within the configured range of ports.</exception>
/// <returns>A TcpListener.</returns>
Task<IPasvListener> CreateTcpListener(IFtpConnection connection, int port);
Task<IPasvListener> CreateTcpListener(IFtpConnection connection, int port = 0);
}
}
6 changes: 0 additions & 6 deletions src/FubarDev.FtpServer/PasvListenerFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,6 @@ public PasvListenerFactory(IOptions<FtpServerOptions> serverOptions, ILogger<Pas
/// </summary>
protected IPAddress PasvExternalAddress { get; }

/// <inheritdoc />
public Task<IPasvListener> CreateTcpListener(IFtpConnection connection)
{
return CreateTcpListener(connection, 0);
}

/// <inheritdoc />
public Task<IPasvListener> CreateTcpListener(IFtpConnection connection, int port)
{
Expand Down

0 comments on commit b290585

Please sign in to comment.