Remove unused variables causing compile warnings.

This commit is contained in:
Jim Norman 2006-11-28 06:49:46 +00:00
parent 20ae282ddb
commit ee795f0f41
18 changed files with 40 additions and 41 deletions

View File

@ -367,7 +367,7 @@ namespace sscs.cache
CASACrypto.StoreKeySetUsingMasterPasscode(key, IV, baPasscode, fileName); CASACrypto.StoreKeySetUsingMasterPasscode(key, IV, baPasscode, fileName);
} }
catch (Exception e) catch (Exception)
{ {
return false; return false;
} }

View File

@ -29,8 +29,7 @@ namespace sscs.common
//TBD //TBD
// All user defined exceptions will extend this class in future // All user defined exceptions will extend this class in future
internal class CSSSException : ApplicationException internal class CSSSException : ApplicationException
{ {
internal string user;
internal CSSSException (string message) internal CSSSException (string message)
{ {

View File

@ -86,7 +86,7 @@ namespace sscs.common
ss.CreateTime = DateTime.Now; ss.CreateTime = DateTime.Now;
return ss; return ss;
} }
catch(UserNotInSessionException e) catch(UserNotInSessionException)
{ {
// Would create either windows/unix user // Would create either windows/unix user
// depending on the platform. // depending on the platform.
@ -276,7 +276,7 @@ namespace sscs.common
Thread.Sleep(JANITOR_SLEEP_TIME); Thread.Sleep(JANITOR_SLEEP_TIME);
} //while true ends here. } //while true ends here.
} }
catch(ThreadAbortException e) catch(ThreadAbortException)
{ {
CSSSLogger.DbgLog("Janitor thread is going down."); CSSSLogger.DbgLog("Janitor thread is going down.");
} }

View File

@ -40,7 +40,7 @@ namespace sscs.common
protected SecretStore secretStore; protected SecretStore secretStore;
protected string home; //protected string home;
/* Change the protection level after getting the latest requirements */ /* Change the protection level after getting the latest requirements */

View File

@ -116,7 +116,7 @@ namespace sscs.common
// or null is returned. // or null is returned.
return (string)sk1.GetValue(KeyName.ToUpper()); return (string)sk1.GetValue(KeyName.ToUpper());
} }
catch (Exception e) catch (Exception)
{ {
//ShowErrorMessage(e, "Reading registry " + KeyName.ToUpper()); //ShowErrorMessage(e, "Reading registry " + KeyName.ToUpper());
return null; return null;

View File

@ -86,7 +86,7 @@ namespace sscs.communication
return incoming; return incoming;
} }
catch(Exception e) catch(Exception)
{ {
return null; return null;
//CSSSLogger.DbgLog("Exception in reading data from client" + e.ToString()); //CSSSLogger.DbgLog("Exception in reading data from client" + e.ToString());

View File

@ -117,11 +117,11 @@ namespace sscs.init
public override void Install(IDictionary stateServer) public override void Install(IDictionary stateServer)
{ {
Microsoft.Win32.RegistryKey system, Microsoft.Win32.RegistryKey system,
currentControlSet, currentControlSet,
services, services,
service, service;
config; //config;
try try
{ {

View File

@ -194,7 +194,7 @@ namespace sscs.init
private static void GetLUID(HANDLE token, ref int lowPart, ref int highPart) private static void GetLUID(HANDLE token, ref int lowPart, ref int highPart)
{ {
TOKEN_USER tokUser;
const int bufLength = 256; const int bufLength = 256;
IntPtr tu = Marshal.AllocHGlobal(bufLength); IntPtr tu = Marshal.AllocHGlobal(bufLength);
int cb = bufLength; int cb = bufLength;

View File

@ -306,7 +306,7 @@ namespace sscs.init
} }
} }
catch(Exception e) catch(Exception)
{ {
// Terminate(); // Terminate();
} }

View File

@ -172,7 +172,7 @@ namespace Novell.CASA.MiCasa.Communication
} }
catch (Exception e1) catch (Exception)
{ {
//Console.WriteLine(e1.ToString()); //Console.WriteLine(e1.ToString());
//clientConnection.Dispose(); //clientConnection.Dispose();

View File

@ -98,7 +98,7 @@ namespace sscs.verbs
request = (WrappedObject)formatter.Deserialize(ms); request = (WrappedObject)formatter.Deserialize(ms);
reply = ProcessMessage(request, userId); reply = ProcessMessage(request, userId);
} }
catch (Exception e) catch (Exception)
{ {
reply = new WrappedObject(-1, null); reply = new WrappedObject(-1, null);
} }
@ -880,7 +880,7 @@ namespace sscs.verbs
kv3.AddLink(new LinkedKeyInfo(GW, "Password")); kv3.AddLink(new LinkedKeyInfo(GW, "Password"));
kv.AddLink(new LinkedKeyInfo(GWIM, "Password")); kv.AddLink(new LinkedKeyInfo(GWIM, "Password"));
} }
catch (Exception e) catch (Exception)
{ {
//Console.WriteLine(e.ToString()); //Console.WriteLine(e.ToString());
} }

View File

@ -46,7 +46,7 @@ namespace sscs.verbs
private uint outMsgLen = 0; private uint outMsgLen = 0;
private uint keyChainIdLen = 0; private uint keyChainIdLen = 0;
private uint secretIdLen = 0; private uint secretIdLen = 0;
private uint secretValLen = 0;
private int retCode = 0; private int retCode = 0;
private string keyChainId; private string keyChainId;
private string secretId; private string secretId;

View File

@ -118,7 +118,7 @@ namespace sscs.verbs
int extLocation = 22 + ((int)keyChainIdLen) + ((int)secretIdLen) + ((int)secretValLen); int extLocation = 22 + ((int)keyChainIdLen) + ((int)secretIdLen) + ((int)secretValLen);
extId = BitConverter.ToUInt32(inBuf, extLocation); extId = BitConverter.ToUInt32(inBuf, extLocation);
} }
catch (Exception e) catch (Exception)
{ {
//CSSSLogger.ExpLog(e.ToString()); //CSSSLogger.ExpLog(e.ToString());
} }

View File

@ -428,7 +428,7 @@ namespace sscs.winforms
fs.Close(); fs.Close();
} }
} }
catch (Exception e1) catch (Exception)
{ {
} }

View File

@ -115,7 +115,7 @@ public class AggregationPol : CASAPol
aggPolElem.AppendChild(storeElem); aggPolElem.AppendChild(storeElem);
} }
} }
catch(Exception e) catch(Exception)
{ {
//Console.WriteLine(e.ToString()); //Console.WriteLine(e.ToString());
} }

View File

@ -117,7 +117,7 @@ public class ICASAPol
string path = homeDir + XmlConsts.policyFileName; string path = homeDir + XmlConsts.policyFileName;
return path; return path;
} }
catch(Exception e) catch(Exception)
{ {
//Console.WriteLine(e.ToString()); //Console.WriteLine(e.ToString());
} }
@ -138,7 +138,7 @@ public class ICASAPol
policies[3] = GetPolicy(CASAPolType.SYNCH_POL); policies[3] = GetPolicy(CASAPolType.SYNCH_POL);
return policies; return policies;
} }
catch(Exception e) catch(Exception)
{ {
//Console.WriteLine(e.ToString()); //Console.WriteLine(e.ToString());
} }
@ -172,7 +172,7 @@ public class ICASAPol
writer.Close(); writer.Close();
return true; return true;
} }
catch(Exception e) catch(Exception)
{ {
//Console.WriteLine(e.ToString()); //Console.WriteLine(e.ToString());
} }
@ -205,7 +205,7 @@ public class ICASAPol
return aggPol; return aggPol;
} }
} }
catch(Exception e) catch(Exception)
{ {
//Console.WriteLine(e.ToString()); //Console.WriteLine(e.ToString());
} }
@ -267,7 +267,7 @@ public class ICASAPol
{ {
htSecretPolicies.Add(idNode.Value, nvc); htSecretPolicies.Add(idNode.Value, nvc);
} }
catch (Exception e) catch (Exception)
{ {
//Console.WriteLine(e.ToString()); //Console.WriteLine(e.ToString());
} }
@ -278,7 +278,7 @@ public class ICASAPol
return persistencePol; return persistencePol;
} }
} }
catch(Exception e) catch(Exception)
{ {
//Console.WriteLine(e.ToString()); //Console.WriteLine(e.ToString());
} }
@ -325,7 +325,7 @@ public class ICASAPol
return uiPol; return uiPol;
} }
} }
catch(Exception e) catch(Exception)
{ {
//Console.WriteLine(e.ToString()); //Console.WriteLine(e.ToString());
} }
@ -368,7 +368,7 @@ public class ICASAPol
synchPol = new SynchPol(linkGrpList); synchPol = new SynchPol(linkGrpList);
} }
} }
catch(Exception e) catch(Exception)
{ {
//Console.WriteLine(e.ToString()); //Console.WriteLine(e.ToString());
} }
@ -411,7 +411,7 @@ public class ICASAPol
} }
catch(Exception e) catch(Exception)
{ {
//Console.WriteLine(e.ToString()); //Console.WriteLine(e.ToString());
} }
@ -520,7 +520,7 @@ public class ICASAPol
SetPolicies(policies); SetPolicies(policies);
return true; return true;
} }
catch(Exception e) catch(Exception)
{ {
//Console.WriteLine(e.ToString()); //Console.WriteLine(e.ToString());
} }

View File

@ -155,7 +155,7 @@ public class KWLinkKey : LinkKey
attr.Value = keyId; attr.Value = keyId;
linkKeyElem.SetAttributeNode(attr); linkKeyElem.SetAttributeNode(attr);
} }
catch(Exception e) catch(Exception)
{ {
//Console.WriteLine(e.ToString()); //Console.WriteLine(e.ToString());
} }
@ -198,7 +198,7 @@ public class GKLinkKey : LinkKey
attr.Value = keyId; attr.Value = keyId;
linkKeyElem.SetAttributeNode(attr); linkKeyElem.SetAttributeNode(attr);
} }
catch(Exception e) catch(Exception)
{ {
//Console.WriteLine(e.ToString()); //Console.WriteLine(e.ToString());
} }
@ -244,7 +244,7 @@ public class MZLinkKey : LinkKey
linkKeyElem.SetAttributeNode(attr); linkKeyElem.SetAttributeNode(attr);
} }
catch(Exception e) catch(Exception)
{ {
//Console.WriteLine(e.ToString()); //Console.WriteLine(e.ToString());
} }
@ -288,7 +288,7 @@ public class FXLinkKey : LinkKey
linkKeyElem.SetAttributeNode(attr); linkKeyElem.SetAttributeNode(attr);
} }
catch(Exception e) catch(Exception)
{ {
//Console.WriteLine(e.ToString()); //Console.WriteLine(e.ToString());
} }
@ -327,7 +327,7 @@ public class CASALinkKey : LinkKey
linkKeyElem.SetAttributeNode(attr); linkKeyElem.SetAttributeNode(attr);
} }
catch(Exception e) catch(Exception)
{ {
//Console.WriteLine(e.ToString()); //Console.WriteLine(e.ToString());
} }
@ -370,7 +370,7 @@ public class Link
linkElem.AppendChild(linkKeyElem); linkElem.AppendChild(linkKeyElem);
} }
} }
catch(Exception e) catch(Exception)
{ {
//Console.WriteLine(e.ToString()); //Console.WriteLine(e.ToString());
} }
@ -416,7 +416,7 @@ public class LinkGroup
linkGroupElem.AppendChild(linkElem); linkGroupElem.AppendChild(linkElem);
} }
} }
catch(Exception e) catch(Exception)
{ {
//Console.WriteLine(e.ToString()); //Console.WriteLine(e.ToString());
} }
@ -471,7 +471,7 @@ public class SynchPol: CASAPol
// linkGroups[i].AppendToDoc(doc); // linkGroups[i].AppendToDoc(doc);
} }
} }
catch(Exception e) catch(Exception)
{ {
//Console.WriteLine(e.ToString()); //Console.WriteLine(e.ToString());
} }

View File

@ -155,7 +155,7 @@ namespace Novell.CASA.CASAPolicy
} }
} }
catch(Exception e) catch(Exception)
{ {
//Console.WriteLine(e.ToString()); //Console.WriteLine(e.ToString());
} }