From fdbe8cfebf608322d8091b18965eb5c0829b6bbc Mon Sep 17 00:00:00 2001 From: Jerome Laban Date: Sat, 26 Oct 2024 14:22:54 -0400 Subject: [PATCH] fix: Remove unused script options This field is not needed, and does not work on webassembly as the runtime-loaded assemblies do not have a physical location. --- src/Quoter/Quoter.cs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/Quoter/Quoter.cs b/src/Quoter/Quoter.cs index 9c6c79c..44a01bb 100644 --- a/src/Quoter/Quoter.cs +++ b/src/Quoter/Quoter.cs @@ -45,18 +45,6 @@ public class Quoter public bool RemoveRedundantModifyingCalls { get; set; } public bool ShortenCodeWithUsingStatic { get; set; } - private readonly ScriptOptions options = ScriptOptions.Default - .AddReferences( - typeof(SyntaxNode).Assembly, - typeof(CSharpSyntaxNode).Assembly) - .AddReferences("System.Runtime") - .AddImports( - "System", - "Microsoft.CodeAnalysis", - "Microsoft.CodeAnalysis.CSharp", - "Microsoft.CodeAnalysis.CSharp.Syntax", - "Microsoft.CodeAnalysis.CSharp.SyntaxFactory"); - public Quoter() { UseDefaultFormatting = true;