Remove unused variables from Xprint/attributes.c
This commit is contained in:
parent
7a40ac2585
commit
839305bac9
|
@ -342,7 +342,7 @@ BuildPrinterAttrs(
|
||||||
|
|
||||||
if(systemAttributes.printers != (XrmDatabase)NULL)
|
if(systemAttributes.printers != (XrmDatabase)NULL)
|
||||||
{
|
{
|
||||||
char *dirName, *fileName;
|
char *fileName;
|
||||||
XrmDatabase modelDB = (XrmDatabase)NULL;
|
XrmDatabase modelDB = (XrmDatabase)NULL;
|
||||||
XrmName xrm_name[5], xrm_class[2];
|
XrmName xrm_name[5], xrm_class[2];
|
||||||
XrmRepresentation rep_type;
|
XrmRepresentation rep_type;
|
||||||
|
@ -642,7 +642,6 @@ XpGetOneAttribute(
|
||||||
{
|
{
|
||||||
ContextAttrPtr pCtxtAttrs;
|
ContextAttrPtr pCtxtAttrs;
|
||||||
XrmDatabase db = (XrmDatabase)NULL;
|
XrmDatabase db = (XrmDatabase)NULL;
|
||||||
char *retVal;
|
|
||||||
XrmName xrm_name[3];
|
XrmName xrm_name[3];
|
||||||
XrmRepresentation rep_type;
|
XrmRepresentation rep_type;
|
||||||
XrmValue value;
|
XrmValue value;
|
||||||
|
@ -895,7 +894,6 @@ XpGetAttributes(
|
||||||
{
|
{
|
||||||
ContextAttrPtr pCtxtAttrs;
|
ContextAttrPtr pCtxtAttrs;
|
||||||
XrmDatabase db = (XrmDatabase)NULL;
|
XrmDatabase db = (XrmDatabase)NULL;
|
||||||
char *retVal;
|
|
||||||
StringDbStruct enumStruct;
|
StringDbStruct enumStruct;
|
||||||
XrmQuark empty = NULLQUARK;
|
XrmQuark empty = NULLQUARK;
|
||||||
|
|
||||||
|
@ -1536,8 +1534,8 @@ VectorizeCommand(
|
||||||
char ***pVector,
|
char ***pVector,
|
||||||
XpContextPtr pContext)
|
XpContextPtr pContext)
|
||||||
{
|
{
|
||||||
char *cmdName, *curTok;
|
char *cmdName;
|
||||||
int i, numChars;
|
int numChars;
|
||||||
|
|
||||||
if(command == (char *)NULL)
|
if(command == (char *)NULL)
|
||||||
return (char *)NULL;
|
return (char *)NULL;
|
||||||
|
@ -1563,7 +1561,7 @@ XpSubmitJob(fileName, pContext)
|
||||||
char *fileName;
|
char *fileName;
|
||||||
XpContextPtr pContext;
|
XpContextPtr pContext;
|
||||||
{
|
{
|
||||||
char **vector, *cmdNam, *cmdOpt, *command, *userName;
|
char **vector, *cmdNam, *command, *userName;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
command = XpGetOneAttribute(pContext, XPPrinterAttr, "xp-spooler-command");
|
command = XpGetOneAttribute(pContext, XPPrinterAttr, "xp-spooler-command");
|
||||||
|
@ -1689,7 +1687,6 @@ XpGetTrayMediumFromContext(XpContextPtr pCon,
|
||||||
{
|
{
|
||||||
char *defMedium, *defTray;
|
char *defMedium, *defTray;
|
||||||
char *t, *m;
|
char *t, *m;
|
||||||
char *pS, *pE, *pLast;
|
|
||||||
|
|
||||||
defMedium = XpGetOneAttribute( pCon, XPPageAttr,
|
defMedium = XpGetOneAttribute( pCon, XPPageAttr,
|
||||||
"default-medium" );
|
"default-medium" );
|
||||||
|
|
Loading…
Reference in New Issue