Skip to content

Commit

Permalink
Removed obsolete comments. #20
Browse files Browse the repository at this point in the history
  • Loading branch information
bero committed Dec 6, 2024
1 parent 9319d6c commit 235f136
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions Source/BoldSystemPersistenceHandler.pas
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -192,7 +192,7 @@ function TBoldSystemPersistenceHandler.EnsureEnclosure(ObjectList: TBoldObjectLi
end;

var
OldCount: Integer; //PATCH
OldCount: Integer;
I,J,M : Integer;
OtherEnd: TBoldObjectReference;
ObjectReference: TBoldObjectReference;
Expand All @@ -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];
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 235f136

Please sign in to comment.