Skip to content

Commit afb15f0

Browse files
authored
remove redundant ifdef (#18284)
1 parent a9f59cd commit afb15f0

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/Compiler/TypedTree/TypeProviders.fs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ let CreateTypeProvider (
122122

123123
// Create the TypeProviderConfig to pass to the type provider constructor
124124
let e =
125-
#if FSHARPCORE_USE_PACKAGE
126125
TypeProviderConfig(systemRuntimeContainsType,
127126
ReferencedAssemblies=getReferencedAssemblies(),
128127
ResolutionFolder=resolutionEnvironment.ResolutionFolder,
@@ -131,16 +130,7 @@ let CreateTypeProvider (
131130
IsInvalidationSupported=isInvalidationSupported,
132131
IsHostedExecution= isInteractive,
133132
SystemRuntimeAssemblyVersion = systemRuntimeAssemblyVersion)
134-
#else
135-
TypeProviderConfig(systemRuntimeContainsType,
136-
ReferencedAssemblies=getReferencedAssemblies(),
137-
ResolutionFolder=resolutionEnvironment.ResolutionFolder,
138-
RuntimeAssembly=runtimeAssemblyPath,
139-
TemporaryFolder=resolutionEnvironment.TemporaryFolder,
140-
IsInvalidationSupported=isInvalidationSupported,
141-
IsHostedExecution= isInteractive,
142-
SystemRuntimeAssemblyVersion = systemRuntimeAssemblyVersion)
143-
#endif
133+
144134
protect (fun () -> !!(Activator.CreateInstance(typeProviderImplementationType, [| box e|])) :?> ITypeProvider )
145135

146136
elif not(isNull(typeProviderImplementationType.GetConstructor [| |])) then

0 commit comments

Comments
 (0)