Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
<Compile Include="System\Runtime\ProfileOptimization.cs" />
<Compile Include="System\Runtime\CompilerServices\SwitchExpressionExceptionTests.cs" />

<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.GetNodeName.cs" Condition="'$(TargetsUnix)' == 'true' or '$(TargetsBrowser)' == 'true'" Link="Common\Interop\Unix\System.Native\Interop.GetNodeName.cs" />
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.GetHostName.cs" Condition="'$(TargetsUnix)' == 'true' or '$(TargetsBrowser)' == 'true'" Link="Common\Interop\Unix\System.Native\Interop.GetHostName.cs" />
<Compile Include="$(CommonPath)Interop\Unix\Interop.Libraries.cs" Link="Common\Interop\Unix\Interop.Libraries.cs" />
<Compile Include="$(CommonTestPath)System\IO\PathFeatures.cs" Link="Common\System\IO\PathFeatures.cs" />
<Compile Include="$(CommonTestPath)System\ShouldNotBeInvokedException.cs" Link="Common\System\ShouldNotBeInvokedException.cs" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ public void TestMachineNameProperty()
internal static string GetComputerName()
{
#if !Unix
return Environment.GetEnvironmentVariable("COMPUTERNAME");
return Environment.GetEnvironmentVariable("COMPUTERNAME");
#else
if (PlatformDetection.IsBrowser)
return "localhost";
string temp = Interop.Sys.GetNodeName();
int index = temp.IndexOf('.');
return index < 0 ? temp : temp.Substring(0, index);
if (PlatformDetection.IsBrowser)
return "localhost";
string temp = Interop.Sys.GetHostName();
int index = temp.IndexOf('.');
return index < 0 ? temp : temp.Substring(0, index);
#endif
}
}
Expand Down
21 changes: 0 additions & 21 deletions src/mono/System.Private.CoreLib/src/System/TypeSpec.cs
Original file line number Diff line number Diff line change
Expand Up @@ -305,27 +305,6 @@ internal static string UnescapeInternalName(string displayName)
return res.ToString();
}

internal static bool NeedsEscaping(string internalName)
{
foreach (char c in internalName)
{
switch (c)
{
case ',':
case '+':
case '*':
case '&':
case '[':
case ']':
case '\\':
return true;
default:
break;
}
}
return false;
}

internal Type? Resolve(Func<AssemblyName, Assembly> assemblyResolver, Func<Assembly, string, bool, Type> typeResolver, bool throwOnError, bool ignoreCase, ref StackCrawlMark stackMark)
{
Assembly? asm = null;
Expand Down
1 change: 0 additions & 1 deletion src/native/libs/System.Native/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ set(NATIVE_SOURCES
pal_process.c
pal_random.c
pal_runtimeinformation.c
pal_runtimeextensions.c
pal_signal.c
pal_string.c
pal_tcpstate.c
Expand Down
2 changes: 0 additions & 2 deletions src/native/libs/System.Native/entrypoints.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#include "pal_networkstatistics.h"
#include "pal_process.h"
#include "pal_random.h"
#include "pal_runtimeextensions.h"
#include "pal_runtimeinformation.h"
#include "pal_searchpath.h"
#include "pal_signal.h"
Expand Down Expand Up @@ -214,7 +213,6 @@ static const Entry s_sysNative[] =
DllImportEntry(SystemNative_GetProcessPath)
DllImportEntry(SystemNative_GetNonCryptographicallySecureRandomBytes)
DllImportEntry(SystemNative_GetCryptographicallySecureRandomBytes)
DllImportEntry(SystemNative_GetNodeName)
DllImportEntry(SystemNative_GetUnixName)
DllImportEntry(SystemNative_GetUnixRelease)
DllImportEntry(SystemNative_GetUnixVersion)
Expand Down
23 changes: 0 additions & 23 deletions src/native/libs/System.Native/pal_runtimeextensions.c

This file was deleted.

9 changes: 0 additions & 9 deletions src/native/libs/System.Native/pal_runtimeextensions.h

This file was deleted.