Commit d6b04cde authored by Petri Hintukainen's avatar Petri Hintukainen Committed by Jean-Baptiste Kempf

sftp: remove unused sftp-readsize

parent 560eedba
...@@ -52,8 +52,6 @@ static void Close( vlc_object_t* ); ...@@ -52,8 +52,6 @@ static void Close( vlc_object_t* );
#define PORT_TEXT N_("SFTP port") #define PORT_TEXT N_("SFTP port")
#define PORT_LONGTEXT N_("SFTP port number to use on the server") #define PORT_LONGTEXT N_("SFTP port number to use on the server")
#define MTU_TEXT N_("Read size")
#define MTU_LONGTEXT N_("Size of the request for reading access")
#define USER_TEXT N_("Username") #define USER_TEXT N_("Username")
#define USER_LONGTEXT N_("Username that will be used for the connection, " \ #define USER_LONGTEXT N_("Username that will be used for the connection, " \
"if no username is set in the URL.") "if no username is set in the URL.")
...@@ -67,7 +65,6 @@ vlc_module_begin () ...@@ -67,7 +65,6 @@ vlc_module_begin ()
set_capability( "access", 0 ) set_capability( "access", 0 )
set_category( CAT_INPUT ) set_category( CAT_INPUT )
set_subcategory( SUBCAT_INPUT_ACCESS ) set_subcategory( SUBCAT_INPUT_ACCESS )
add_integer( "sftp-readsize", 8192, MTU_TEXT, MTU_LONGTEXT, true )
add_integer( "sftp-port", 22, PORT_TEXT, PORT_LONGTEXT, true ) add_integer( "sftp-port", 22, PORT_TEXT, PORT_LONGTEXT, true )
add_string( "sftp-user", NULL, USER_TEXT, USER_LONGTEXT, false ) add_string( "sftp-user", NULL, USER_TEXT, USER_LONGTEXT, false )
add_password( "sftp-pwd", NULL, PASS_TEXT, PASS_LONGTEXT, false ) add_password( "sftp-pwd", NULL, PASS_TEXT, PASS_LONGTEXT, false )
...@@ -93,7 +90,6 @@ struct access_sys_t ...@@ -93,7 +90,6 @@ struct access_sys_t
LIBSSH2_SFTP* sftp_session; LIBSSH2_SFTP* sftp_session;
LIBSSH2_SFTP_HANDLE* file; LIBSSH2_SFTP_HANDLE* file;
uint64_t filesize; uint64_t filesize;
size_t i_read_size;
/* browser */ /* browser */
char* psz_username_opt; char* psz_username_opt;
...@@ -314,8 +310,6 @@ static int Open( vlc_object_t* p_this ) ...@@ -314,8 +310,6 @@ static int Open( vlc_object_t* p_this )
goto error; goto error;
} }
p_sys->i_read_size = var_InheritInteger( p_access, "sftp-readsize" );
free( psz_password ); free( psz_password );
free( psz_username ); free( psz_username );
free( psz_remote_home ); free( psz_remote_home );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment