Skip to content

Commit

Permalink
chore: Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
dr1rrb committed Dec 5, 2024
1 parent ce42538 commit ed7614b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 66 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -269,67 +269,6 @@ public async Task Initialize(CancellationToken ct)
);

workspace.TryApplyChanges(currentSolution);

//if (_sourceFiles.TryGetValue(projectName, out var sourceFiles))
//{
// foreach (var (fileName, content) in sourceFiles)
// {
// var documentId = DocumentId.CreateNewId(project.Id);

// currentSolution = currentSolution.AddDocument(
// documentId,
// fileName,
// CSharpSyntaxTree.ParseText(content, encoding: Encoding.UTF8).GetText(),
// filePath: Path.Combine(_baseWorkFolder, project.Name, fileName)
// );
// }
//}

//if (_additionalFiles.TryGetValue(projectName, out var additionalFiles))
//{
// foreach (var (fileName, content) in additionalFiles)
// {
// var documentId = DocumentId.CreateNewId(project.Id);
// currentSolution = currentSolution.AddAdditionalDocument(
// documentId,
// fileName,
// CSharpSyntaxTree.ParseText(content, encoding: Encoding.UTF8).GetText(),
// filePath: Path.Combine(_baseWorkFolder, project.Name, fileName));
// }

// if (additionalFiles.Any())
// {
// // Build the analyzer document additional data information
// var analyzerDocumentId = DocumentId.CreateNewId(project.Id);

// // For now, there is no need to customize these for each test.
// var globalConfigBuilder = new StringBuilder($"""
// is_global = true
// build_property.MSBuildProjectFullPath = C:\Project\{project.Name}.csproj
// build_property.RootNamespace = {project.Name}
// build_property.XamlSourceGeneratorTracingFolder = {_baseWorkFolder}
// build_property.Configuration = {(_isDebugCompilation ? "Debug" : "Release")}

// """); ;

// foreach (var (fileName, content) in additionalFiles.Where(k => k.Key.EndsWith(".xaml")))
// {
// globalConfigBuilder.Append($"""
// [{Path.Combine(_baseWorkFolder, project.Name, fileName).Replace("\\", "/")}]
// build_metadata.AdditionalFiles.SourceItemGroup = Page
// """);
// }

// currentSolution = currentSolution.AddAnalyzerConfigDocument(
// analyzerDocumentId,
// name: ".globalconfig",
// filePath: "/.globalconfig",
// text: SourceText.From(globalConfigBuilder.ToString())
// ); ;
// }
//}

//workspace.TryApplyChanges(currentSolution);
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -680,11 +680,6 @@ private SourceText GenerateGlobalResources(IEnumerable<XamlFileDefinition> files
writer.AppendLineIndented("/// Contains all the static resources defined for the application");
writer.AppendLineIndented("/// </summary>");

if (_isDebug)
{
//writer.AppendLineIndented("[global::System.Runtime.CompilerServices.CreateNewOnMetadataUpdate]");
}

using (writer.BlockInvariant("public sealed partial class GlobalStaticResources"))
{
writer.AppendLineIndented("static bool _initialized;");
Expand Down

0 comments on commit ed7614b

Please sign in to comment.