Skip to content

Commit

Permalink
Clean some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
danieleteti committed Apr 16, 2024
1 parent 3820d47 commit 8035498
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions sources/MVCFramework.Router.pas
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,6 @@ function TMVCRouter.ExecuteRouting(const ARequestPathInfo: string;
LProduceAttribute: MVCProducesAttribute;
lURLSegment: string;
LItem: String;
lConstructors: TArray<TRttiMethod>;
lConstructor: TRttiMethod;
// JUST FOR DEBUG
// lMethodCompatible: Boolean;
// lContentTypeCompatible: Boolean;
Expand All @@ -187,12 +185,10 @@ function TMVCRouter.ExecuteRouting(const ARequestPathInfo: string;
LRequestPathInfo := '/' + LRequestPathInfo;
end;
end;
//LRequestPathInfo := TNetEncoding.URL.EncodePath(LRequestPathInfo, [Ord('$')]);
LRequestPathInfo := TIdURI.PathEncode(Trim(LRequestPathInfo)); //regression introduced in fix for issue 492

TMonitor.Enter(gLock);
try
//LControllerMappedPaths := TArray<string>.Create();
LControllerMappedPaths := TStringList.Create;
try
for LControllerDelegate in AControllers do
Expand All @@ -207,7 +203,6 @@ function TMVCRouter.ExecuteRouting(const ARequestPathInfo: string;
LAttributes := LRttiType.GetAttributes;
if (LAttributes = nil) then
Continue;
//LControllerMappedPaths := GetControllerMappedPath(LRttiType.Name, LAttributes);
FillControllerMappedPaths(LRttiType.Name, LAttributes, LControllerMappedPaths);
end
else
Expand All @@ -231,11 +226,6 @@ function TMVCRouter.ExecuteRouting(const ARequestPathInfo: string;
begin
Continue;
end;
// end;

// if (not LControllerMappedPathFound) then
// continue;

LMethods := LRttiType.GetMethods; { do not use GetDeclaredMethods because JSON-RPC rely on this!! }
for LMethod in LMethods do
begin
Expand Down

0 comments on commit 8035498

Please sign in to comment.