Remove Old comments
Remove unnecessary Disposes
This commit is contained in:
@@ -440,11 +440,7 @@ namespace VEPROMS.CSLA.Library
|
||||
{
|
||||
Part tmp = Part.New(myContent, fromType, myItem);
|
||||
if (tmp.IsSavable)
|
||||
{
|
||||
Part tmp2 = tmp;
|
||||
tmp = tmp2.Save();
|
||||
tmp2.Dispose();
|
||||
}
|
||||
tmp = tmp.Save();
|
||||
else
|
||||
{
|
||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||
@@ -470,11 +466,7 @@ namespace VEPROMS.CSLA.Library
|
||||
{
|
||||
Part tmp = Part.New(myContent, fromType, myItem, dts, userID);
|
||||
if (tmp.IsSavable)
|
||||
{
|
||||
Part 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