Skip to content

Commit df9ea42

Browse files
committed
remove more files
1 parent 51b2cac commit df9ea42

File tree

5 files changed

+0
-1008
lines changed

5 files changed

+0
-1008
lines changed

src/fsharp/CompileOptions.fs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,9 @@ open Microsoft.FSharp.Compiler.IlxGen
3535
module Attributes =
3636
open System.Runtime.CompilerServices
3737

38-
#if SILVERLIGHT
39-
#else
4038
//[<assembly: System.Security.SecurityTransparent>]
4139
[<Dependency("FSharp.Core",LoadHint.Always)>]
4240
do()
43-
#endif
4441

4542
//----------------------------------------------------------------------------
4643
// Compiler option parser
@@ -753,10 +750,7 @@ let internalFlags (tcConfigB:TcConfigBuilder) =
753750
[
754751
CompilerOption("use-incremental-build", tagNone, OptionUnit (fun () -> tcConfigB.useIncrementalBuilder <- true), None, None)
755752
CompilerOption("stamps", tagNone, OptionUnit (fun () -> ()), Some(InternalCommandLineOption("--stamps", rangeCmdArgs)), None);
756-
#if SILVERLIGHT
757-
#else
758753
CompilerOption("ranges", tagNone, OptionSet Tastops.DebugPrint.layoutRanges, Some(InternalCommandLineOption("--ranges", rangeCmdArgs)), None);
759-
#endif
760754
CompilerOption("terms" , tagNone, OptionUnit (fun () -> tcConfigB.showTerms <- true), Some(InternalCommandLineOption("--terms", rangeCmdArgs)), None);
761755
CompilerOption("termsfile" , tagNone, OptionUnit (fun () -> tcConfigB.writeTermsToFiles <- true), Some(InternalCommandLineOption("--termsfile", rangeCmdArgs)), None);
762756
CompilerOption("use-incremental-build", tagNone, OptionUnit (fun () -> tcConfigB.useIncrementalBuilder <- true), None, None)
@@ -878,10 +872,7 @@ let DisplayBannerText tcConfigB =
878872
let displayHelpFsc tcConfigB (blocks:CompilerOptionBlock list) =
879873
DisplayBannerText tcConfigB;
880874
PrintCompilerOptionBlocks blocks
881-
#if SILVERLIGHT
882-
#else
883875
exit 0
884-
#endif
885876

886877
let miscFlagsBoth tcConfigB =
887878
[ CompilerOption("nologo", tagNone, OptionUnit (fun () -> tcConfigB.showBanner <- false), None, Some (FSComp.SR.optsNologo()));
@@ -1080,18 +1071,13 @@ let ReportTime (tcConfig:TcConfig) descr =
10801071
| Some("fsc-ma") -> raise(System.MemberAccessException())
10811072
| Some("fsc-ni") -> raise(System.NotImplementedException())
10821073
| Some("fsc-nr") -> raise(System.NullReferenceException())
1083-
#if SILVERLIGHT
1084-
#else
10851074
| Some("fsc-oc") -> raise(System.OperationCanceledException())
1086-
#endif
10871075
| Some("fsc-fail") -> failwith "simulated"
10881076
| _ -> ()
10891077

10901078

10911079

10921080

1093-
#if SILVERLIGHT
1094-
#else
10951081
if (tcConfig.showTimes || verbose) then
10961082
// Note that timing calls are relatively expensive on the startup path so we don't
10971083
// make this call unless showTimes has been turned on.
@@ -1113,7 +1099,6 @@ let ReportTime (tcConfig:TcConfig) descr =
11131099

11141100
| _ -> ()
11151101
tPrev := Some (timeNow,gcNow)
1116-
#endif
11171102

11181103
nPrev := Some descr
11191104

0 commit comments

Comments
 (0)