aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-10-13 22:14:23 +0200
committerAndreas Schneider <mail@cynapses.org>2009-10-13 22:14:23 +0200
commit22e74e3bab259ed8b6a89cef1fe85f2e99c530b8 (patch)
tree95f80a6f2383109f60c665f7cbf6b850c3acb18a
parent02b3104215b64b60a586de25d16403f387cd880a (diff)
downloadlibssh-22e74e3bab259ed8b6a89cef1fe85f2e99c530b8.tar.gz
libssh-22e74e3bab259ed8b6a89cef1fe85f2e99c530b8.tar.xz
libssh-22e74e3bab259ed8b6a89cef1fe85f2e99c530b8.zip
Remove deprecated functions.
-rw-r--r--include/libssh/sftp.h21
-rw-r--r--libssh/sftp.c13
2 files changed, 0 insertions, 34 deletions
diff --git a/include/libssh/sftp.h b/include/libssh/sftp.h
index 6d6d71a..0293f29 100644
--- a/include/libssh/sftp.h
+++ b/include/libssh/sftp.h
@@ -47,12 +47,6 @@
extern "C" {
#endif
-#ifdef __GNUC__
-#define SFTP_DEPRECATED __attribute__ ((deprecated))
-#else
-#define SFTP_DEPRECATED
-#endif
-
#ifdef _WIN32
#ifndef uid_t
typedef uint32_t uid_t;
@@ -382,11 +376,6 @@ LIBSSH_API void sftp_attributes_free(sftp_attributes file);
LIBSSH_API int sftp_closedir(sftp_dir dir);
/**
- * @deprecated Use sftp_closedir() instead.
- */
-LIBSSH_API int sftp_dir_close(sftp_dir dir) SFTP_DEPRECATED;
-
-/**
* @brief Close an open file handle.
*
* @param file The open sftp file handle to close.
@@ -398,11 +387,6 @@ LIBSSH_API int sftp_dir_close(sftp_dir dir) SFTP_DEPRECATED;
LIBSSH_API int sftp_close(sftp_file file);
/**
- * @deprecated Use sftp_close() instead.
- */
-LIBSSH_API int sftp_file_close(sftp_file file) SFTP_DEPRECATED;
-
-/**
* @brief Open a file on the server.
*
* @param session The sftp session handle.
@@ -579,11 +563,6 @@ LIBSSH_API uint64_t sftp_tell64(sftp_file file);
LIBSSH_API void sftp_rewind(sftp_file file);
/**
- * @deprecated Use sftp_unlink() instead.
- */
-LIBSSH_API int sftp_rm(sftp_session sftp, const char *file) SFTP_DEPRECATED;
-
-/**
* @brief Unlink (delete) a file.
*
* @param sftp The sftp session handle.
diff --git a/libssh/sftp.c b/libssh/sftp.c
index 46bcce3..f657e4a 100644
--- a/libssh/sftp.c
+++ b/libssh/sftp.c
@@ -1453,10 +1453,6 @@ static int sftp_handle_close(sftp_session sftp, ssh_string handle) {
return -1;
}
-int sftp_file_close(sftp_file file) {
- return sftp_close(file);
-}
-
/* Close an open file handle. */
int sftp_close(sftp_file file){
int err = SSH_NO_ERROR;
@@ -1472,10 +1468,6 @@ int sftp_close(sftp_file file){
return err;
}
-int sftp_dir_close(sftp_dir dir) {
- return sftp_closedir(dir);
-}
-
/* Close an open directory. */
int sftp_closedir(sftp_dir dir){
int err = SSH_NO_ERROR;
@@ -1922,11 +1914,6 @@ void sftp_rewind(sftp_file file) {
file->offset = 0;
}
-/* deprecated */
-int sftp_rm(sftp_session sftp, const char *file) {
- return sftp_unlink(sftp, file);
-}
-
/* code written by Nick */
int sftp_unlink(sftp_session sftp, const char *file) {
sftp_status_message status = NULL;