Skip to content

Commit

Permalink
Revert "fsxc: also write comments for other preprocessors"
Browse files Browse the repository at this point in the history
This reverts commit a8662ee
because it was actually duplicating the line (these actions
were already being printed as a comment).
  • Loading branch information
knocte committed Sep 5, 2024
1 parent 0c2150c commit e883ca7
Showing 1 changed file with 2 additions and 36 deletions.
38 changes: 2 additions & 36 deletions fsxc/Fsxc.fs
Original file line number Diff line number Diff line change
Expand Up @@ -635,21 +635,8 @@ let fsi = { CommandLineArgs = System.Environment.GetCommandLineArgs() }
)

match action with
| PreProcessorAction.Skip ->
File.AppendAllText(
autogeneratedFile.FullName,
startCommentInFSharp
+ line
+ Environment.NewLine
)
| PreProcessorAction.Skip -> ()
| PreProcessorAction.Load fileName ->
File.AppendAllText(
autogeneratedFile.FullName,
startCommentInFSharp
+ line
+ Environment.NewLine
)

let file =
FileInfo(
Path.Combine(
Expand All @@ -662,14 +649,6 @@ let fsi = { CommandLineArgs = System.Environment.GetCommandLineArgs() }

#if LEGACY_FRAMEWORK
| PreProcessorAction.NugetRef(nugetPkgName, version) ->

File.AppendAllText(
autogeneratedFile.FullName,
startCommentInFSharp
+ line
+ Environment.NewLine
)

let downloadedRef =
nugetRefToNormalRef
origScript
Expand All @@ -680,22 +659,9 @@ let fsi = { CommandLineArgs = System.Environment.GetCommandLineArgs() }
#else

| PreProcessorAction.NugetRef(_nugetPkgName, _version) ->
File.AppendAllText(
autogeneratedFile.FullName,
startCommentInFSharp
+ line
+ Environment.NewLine
)
()
#endif
| PreProcessorAction.Ref refName ->

File.AppendAllText(
autogeneratedFile.FullName,
startCommentInFSharp
+ line
+ Environment.NewLine
)

let maybeFile =
FileInfo(
Path.Combine(
Expand Down

0 comments on commit e883ca7

Please sign in to comment.