diff options
author | Gerald Carter <jerry@samba.org> | 2005-07-14 18:15:10 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:00:06 -0500 |
commit | d8601c4a37a487a90d80a11f175746ebb46047b6 (patch) | |
tree | 1bd781e8eaf2a678e58902b47064c4673a2276f3 | |
parent | a3a85172167eba787a61e0eb8a7c914407e593ea (diff) | |
download | samba-d8601c4a37a487a90d80a11f175746ebb46047b6.tar.gz samba-d8601c4a37a487a90d80a11f175746ebb46047b6.tar.bz2 samba-d8601c4a37a487a90d80a11f175746ebb46047b6.zip |
r8478: remove unused printmode command from smbclient (noticed by kalim@samba.org)
(This used to be commit aa5de7d0b35b07dfb32aa43df00f73de80de9fdd)
-rw-r--r-- | source3/client/client.c | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/source3/client/client.c b/source3/client/client.c index 0ada2e3a9a..d7905770e9 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -73,8 +73,6 @@ extern BOOL tar_reset; static BOOL prompt = True; -static int printmode = 1; - static BOOL recurse = False; BOOL lowercase = False; @@ -2419,43 +2417,6 @@ static int cmd_translate(void) } /**************************************************************************** - Do a printmode command. -****************************************************************************/ - -static int cmd_printmode(void) -{ - fstring buf; - fstring mode; - - if (next_token_nr(NULL,buf,NULL,sizeof(buf))) { - if (strequal(buf,"text")) { - printmode = 0; - } else { - if (strequal(buf,"graphics")) - printmode = 1; - else - printmode = atoi(buf); - } - } - - switch(printmode) { - case 0: - fstrcpy(mode,"text"); - break; - case 1: - fstrcpy(mode,"graphics"); - break; - default: - slprintf(mode,sizeof(mode)-1,"%d",printmode); - break; - } - - DEBUG(2,("the printmode is now %s\n",mode)); - - return 0; -} - -/**************************************************************************** Do the lcd command. ****************************************************************************/ @@ -2763,7 +2724,6 @@ static struct {"newer",cmd_newer,"<file> only mget files newer than the specified local file",{COMPL_LOCAL,COMPL_NONE}}, {"open",cmd_open,"<mask> open a file",{COMPL_REMOTE,COMPL_NONE}}, {"print",cmd_print,"<file name> print a file",{COMPL_NONE,COMPL_NONE}}, - {"printmode",cmd_printmode,"<graphics or text> set the print mode",{COMPL_NONE,COMPL_NONE}}, {"prompt",cmd_prompt,"toggle prompting for filenames for mget and mput",{COMPL_NONE,COMPL_NONE}}, {"put",cmd_put,"<local name> [remote name] put a file",{COMPL_LOCAL,COMPL_REMOTE}}, {"pwd",cmd_pwd,"show current remote directory (same as 'cd' with no args)",{COMPL_NONE,COMPL_NONE}}, |