Remove Old comments
Remove unnecessary Disposes
This commit is contained in:
@@ -655,11 +655,7 @@ namespace VEPROMS.CSLA.Library
|
||||
{
|
||||
Permission tmp = Permission.New(myRole, permLevel, versionType, permValue, permAD, startDate, endDate, config, dts, usrID);
|
||||
if (tmp.IsSavable)
|
||||
{
|
||||
Permission tmp2 = tmp;
|
||||
tmp = tmp2.Save();
|
||||
tmp2.Dispose();
|
||||
}
|
||||
tmp = tmp.Save();
|
||||
else
|
||||
{
|
||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||
@@ -686,11 +682,7 @@ namespace VEPROMS.CSLA.Library
|
||||
{
|
||||
Permission tmp = Permission.New(myRole, permLevel, versionType, permValue, endDate, config);
|
||||
if (tmp.IsSavable)
|
||||
{
|
||||
Permission tmp2 = tmp;
|
||||
tmp = tmp2.Save();
|
||||
tmp2.Dispose();
|
||||
}
|
||||
tmp = tmp.Save();
|
||||
else
|
||||
{
|
||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||
|
Reference in New Issue
Block a user