Skip to content

Commit

Permalink
Removed unused parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
cmello committed Feb 5, 2024
1 parent 83a7610 commit 5ac0751
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Sharpmake.Generators/VisualStudio/Csproj.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2291,7 +2291,7 @@ List<string> skipFiles
// Always include files generated by text templating (.tt), even if they don't exist yet.
// These files are expected to be absent during a clean build, as they are generated
// during the build process. Therefore, they cannot be left out of the csproj file.
AddContentGeneratedItem(itemGroups, ttFile, generatedFile, generator, false, _projectPathCapitalized, project, true);
AddContentGeneratedItem(itemGroups, ttFile, generatedFile, generator, false, _projectPathCapitalized, project);

remainingNoneFiles.Remove(ttFile);
//Remove generated file wherever it is.
Expand Down Expand Up @@ -2679,8 +2679,7 @@ private static void AddContentGeneratedItem(
string generator,
bool designTimeSharedInput,
string projectPath,
CSharpProject project,
bool addGeneratedFile)
CSharpProject project)
{
Trace.Assert(!string.IsNullOrEmpty(templateFile) && !string.IsNullOrEmpty(generatedFile));
itemGroups.Contents.Add(new ItemGroups.Content
Expand All @@ -2691,8 +2690,6 @@ private static void AddContentGeneratedItem(
LinkFolder = GetProjectLinkedFolder(templateFile, projectPath, project)
});

if (!addGeneratedFile)
return;
var generatedFileExtension = Path.GetExtension(generatedFile).ToLower();

//TODO Give some kind of additional TT directive to specify the build action directly?
Expand Down

0 comments on commit 5ac0751

Please sign in to comment.