Skip to content

Commit fa35b1c

Browse files
committed
Remove mistakenly added function
1 parent a064069 commit fa35b1c

File tree

2 files changed

+0
-40
lines changed

2 files changed

+0
-40
lines changed

src/network_lib.cr

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -519,25 +519,6 @@ lib CSFML
519519
# *Returns*: Server response to the request
520520
fun ftp_upload = sfFtp_upload(ftp: Ftp, local_file: LibC::Char*, dest_path: LibC::Char*, mode: FtpTransferMode): FtpResponse
521521

522-
# Send a command to the FTP server
523-
#
524-
# While the most often used commands are provided as member
525-
# functions in the Ftp class, this method can be used
526-
# to send any FTP command to the server. If the command
527-
# requires one or more parameters, they can be specified
528-
# in `parameter`. Otherwise it should be an empty string.
529-
# If the server returns information, you can extract it
530-
# from the response using Response_getMessage().
531-
#
532-
# *Arguments*:
533-
#
534-
# * `ftp`: Ftp object
535-
# * `command`: Command to send
536-
# * `parameter`: Command parameter
537-
#
538-
# *Returns*: Server response to the request
539-
fun ftp_send_command = sfFtp_sendCommand(ftp: Ftp, command: LibC::Char*, parameter: LibC::Char*): FtpResponse
540-
541522
# Enumerate the available HTTP methods for a request
542523
enum HttpMethod
543524
Get, Post, Head, Put, Delete

src/network_obj.cr

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -566,27 +566,6 @@ module SF
566566
FtpResponse.wrap_ptr(CSFML.ftp_upload(@this, local_file, dest_path, mode))
567567
end
568568

569-
# Send a command to the FTP server
570-
#
571-
# While the most often used commands are provided as member
572-
# functions in the Ftp class, this method can be used
573-
# to send any FTP command to the server. If the command
574-
# requires one or more parameters, they can be specified
575-
# in `parameter`. Otherwise it should be an empty string.
576-
# If the server returns information, you can extract it
577-
# from the response using Response_getMessage().
578-
#
579-
# *Arguments*:
580-
#
581-
# * `ftp`: Ftp object
582-
# * `command`: Command to send
583-
# * `parameter`: Command parameter
584-
#
585-
# *Returns*: Server response to the request
586-
def send_command(command: String, parameter: String)
587-
FtpResponse.wrap_ptr(CSFML.ftp_send_command(@this, command, parameter))
588-
end
589-
590569
end
591570

592571
class HttpRequest

0 commit comments

Comments
 (0)