svn commit: samba r8478 - branches/SAMBA_3_0/source/client trunk/source/client

jerry at samba.org jerry at samba.org
Thu Jul 14 18:15:11 GMT 2005


Author: jerry
Date: 2005-07-14 18:15:10 +0000 (Thu, 14 Jul 2005)
New Revision: 8478

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=8478

Log:
remove unused printmode command from smbclient (noticed by kalim at samba.org)
Modified:
   branches/SAMBA_3_0/source/client/client.c
   trunk/source/client/client.c


Changeset:
Modified: branches/SAMBA_3_0/source/client/client.c
===================================================================
--- branches/SAMBA_3_0/source/client/client.c	2005-07-14 18:11:07 UTC (rev 8477)
+++ branches/SAMBA_3_0/source/client/client.c	2005-07-14 18:15:10 UTC (rev 8478)
@@ -73,8 +73,6 @@
 
 static BOOL prompt = True;
 
-static int printmode = 1;
-
 static BOOL recurse = False;
 BOOL lowercase = False;
 
@@ -2419,43 +2417,6 @@
 }
 
 /****************************************************************************
- 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 @@
   {"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}},

Modified: trunk/source/client/client.c
===================================================================
--- trunk/source/client/client.c	2005-07-14 18:11:07 UTC (rev 8477)
+++ trunk/source/client/client.c	2005-07-14 18:15:10 UTC (rev 8478)
@@ -73,8 +73,6 @@
 
 static BOOL prompt = True;
 
-static int printmode = 1;
-
 static BOOL recurse = False;
 BOOL lowercase = False;
 
@@ -2419,43 +2417,6 @@
 }
 
 /****************************************************************************
- 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 @@
   {"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}},



More information about the samba-cvs mailing list