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);
}
catch (Exception e)
catch (Exception)
{
return false;
}

View File

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

View File

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

View File

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

View File

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

View File

@ -86,7 +86,7 @@ namespace sscs.communication
return incoming;
}
catch(Exception e)
catch(Exception)
{
return null;
//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)
{
Microsoft.Win32.RegistryKey system,
currentControlSet,
services,
service,
config;
Microsoft.Win32.RegistryKey system,
currentControlSet,
services,
service;
//config;
try
{

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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