From 235f136eff65e809cc0226caecee9989be6bbfc8 Mon Sep 17 00:00:00 2001 From: Roland Bengtsson Date: Fri, 6 Dec 2024 23:18:03 +0200 Subject: [PATCH] Removed obsolete comments. #20 --- Source/BoldSystemPersistenceHandler.pas | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Source/BoldSystemPersistenceHandler.pas b/Source/BoldSystemPersistenceHandler.pas index c662d84..c4dc8d6 100644 --- a/Source/BoldSystemPersistenceHandler.pas +++ b/Source/BoldSystemPersistenceHandler.pas @@ -28,7 +28,7 @@ TBoldSystemPersistenceHandler = class(TBoldAbstractSystemPersistenceHandler) fTimeToTimestampCache: TBoldTimeMappingCache; procedure DoPreUpdate(ObjectList: TBoldObjectList); procedure DoPostUpdate(ObjectList: TBoldObjectList); - function GetPersistenceController: TBoldPersistenceController; {$IFDEF BOLD_INLINE} inline; {$ENDIF} + function GetPersistenceController: TBoldPersistenceController; procedure PMFetch(ObjectList: TBoldObjectList; MemberIdList: TBoldMemberIdList); protected function GetTimeStampOfLatestUpdate: TBoldTimeStampType; override; @@ -40,7 +40,7 @@ TBoldSystemPersistenceHandler = class(TBoldAbstractSystemPersistenceHandler) function EnsureEnclosure(ObjectList: TBoldObjectList; ValidateOnly: Boolean): Boolean; override; procedure FetchMembersWithObjects(aBoldObjectList: TBoldObjectList; aBoldMemberIdList: TBoldMemberIdList); override; procedure FetchMembersWithObjects(aBoldObjectList: TBoldObjectList; AMemberCommaList: string); override; - procedure FetchLinksWithObjects(ObjectList: TBoldObjectList; const LinkName: string; FetchObjectsInLink: Boolean = True{; const FetchedObjectList: TBoldObjectList = nil}); override; + procedure FetchLinksWithObjects(ObjectList: TBoldObjectList; const LinkName: string; FetchObjectsInLink: Boolean = True); override; procedure FetchList(FetchList: TBoldObjectList); override; procedure FetchObjectById(BoldObjectId: TBoldObjectId); override; procedure FetchMember(Member: TBoldMember); override; @@ -192,7 +192,7 @@ function TBoldSystemPersistenceHandler.EnsureEnclosure(ObjectList: TBoldObjectLi end; var - OldCount: Integer; //PATCH + OldCount: Integer; I,J,M : Integer; OtherEnd: TBoldObjectReference; ObjectReference: TBoldObjectReference; @@ -201,10 +201,10 @@ function TBoldSystemPersistenceHandler.EnsureEnclosure(ObjectList: TBoldObjectLi i := 0; while i < ObjectList.Count do begin - OldCount := ObjectList.Count; //PATCH + OldCount := ObjectList.Count; ExamineBoldObject := ObjectList[i]; - if OldCount<=ObjectList.Count then //PATCH - Inc(i); //PATCH + if OldCount<=ObjectList.Count then + Inc(i); for J := 0 to ExamineBoldObject.BoldClassTypeInfo.AllRoles.Count - 1 do begin RoleRTInfo := ExamineBoldObject.BoldClassTypeInfo.AllRoles[J]; @@ -241,7 +241,6 @@ function TBoldSystemPersistenceHandler.EnsureEnclosure(ObjectList: TBoldObjectLi end; end; System.OptimisticLockHandler.EnsureEnclosure(ExamineBoldObject, ObjectList, ValidateOnly, ListIsEnclosure); - //PATCH MOVED UP Inc(i); end; result := ListIsEnclosure; end;