From 02b10c979c173bbb297bd0b1df72f45369d2346c Mon Sep 17 00:00:00 2001 From: adityamayukhsom Date: Wed, 3 Apr 2024 12:47:55 +0530 Subject: [PATCH] [ISSUE 375] - removed utility class rendering for file and formdata handling --- lib/codegen/php/curl.dart | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/lib/codegen/php/curl.dart b/lib/codegen/php/curl.dart index 1728d371..b2f54e42 100644 --- a/lib/codegen/php/curl.dart +++ b/lib/codegen/php/curl.dart @@ -116,19 +116,6 @@ echo $response; var templateStart = jj.Template(kTemplateStart); result += templateStart.render(); - // if the request does not contain any file uploads, we do not need - // to add the class for File in the request - if (requestModel.hasFileInFormData) { - result += kFileClassString; - } - - //adds the function to build formdata with or without 'file' type - if (requestModel.hasFormData) { - result += requestModel.hasFileInFormData - ? kBuildFormDataFunctionWithFilesString - : kBuildFormDataFunctionWithoutFilesString; - } - var templateUri = jj.Template(kTemplateUri); //renders the request body contains the HTTP method associated with the request