Remove Old comments
Remove unnecessary Disposes
This commit is contained in:
@@ -482,11 +482,7 @@ namespace VEPROMS.CSLA.Library
|
||||
{
|
||||
Image tmp = Image.New(myContent, imageType, fileName, data, config, dts, userID);
|
||||
if (tmp.IsSavable)
|
||||
{
|
||||
Image tmp2 = tmp;
|
||||
tmp = tmp2.Save();
|
||||
tmp2.Dispose();
|
||||
}
|
||||
tmp = tmp.Save();
|
||||
else
|
||||
{
|
||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||
@@ -511,11 +507,7 @@ namespace VEPROMS.CSLA.Library
|
||||
{
|
||||
Image tmp = Image.New(myContent, fileName, data, config);
|
||||
if (tmp.IsSavable)
|
||||
{
|
||||
Image 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