From 42aacc71069d31ff039b4deda2ad13beb08944bd Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 2 Oct 2009 10:18:27 +0200 Subject: [PATCH] Remove unused option functions. --- include/libssh/options.h | 6 ------ libssh/options.c | 13 ------------- 2 files changed, 19 deletions(-) diff --git a/include/libssh/options.h b/include/libssh/options.h index 8ec07a6d..8b990d33 100644 --- a/include/libssh/options.h +++ b/include/libssh/options.h @@ -49,10 +49,4 @@ struct ssh_options_struct { }; - -/* this function must be called when no specific username has been asked. it has to guess it */ -int ssh_options_default_username(ssh_options opt); -int ssh_options_default_ssh_dir(ssh_options opt); -int ssh_options_default_known_hosts_file(ssh_options opt); - #endif /* OPTIONS_H_ */ diff --git a/libssh/options.c b/libssh/options.c index 70469d81..95429b0d 100644 --- a/libssh/options.c +++ b/libssh/options.c @@ -923,19 +923,6 @@ int ssh_options_set_wanted_algos(ssh_options opt, int algo, const char *list) { return 0; } -/* this function must be called when no specific username has been asked. it has to guess it */ -int ssh_options_default_username(ssh_options opt) { - return ssh_options_set(opt, SSH_OPTIONS_USER, NULL); -} - -int ssh_options_default_ssh_dir(ssh_options opt) { - return ssh_options_set(opt, SSH_OPTIONS_SSH_DIR, NULL); -} - -int ssh_options_default_known_hosts_file(ssh_options opt) { - return ssh_options_set(opt, SSH_OPTIONS_KNOWNHOSTS, NULL); -} - /** * @brief Set a callback to show connection status in realtime. *