remove unused code (#767)

This commit is contained in:
Jesse Plamondon-Willard 2021-03-17 20:36:31 -04:00
parent d61bb78b2a
commit fdfb060795
No known key found for this signature in database
GPG Key ID: CF8B1456B3E29F49
5 changed files with 0 additions and 19 deletions

View File

@ -50,7 +50,6 @@ environment variable | purpose
`SMAPI_NO_TERMINAL` | Equivalent to `--no-terminal` above. `SMAPI_NO_TERMINAL` | Equivalent to `--no-terminal` above.
`SMAPI_MODS_PATH` | Equivalent to `--mods-path` above. `SMAPI_MODS_PATH` | Equivalent to `--mods-path` above.
### Compile flags ### Compile flags
SMAPI uses a small number of conditional compilation constants, which you can set by editing the SMAPI uses a small number of conditional compilation constants, which you can set by editing the
`<DefineConstants>` element in `SMAPI.csproj`. Supported constants: `<DefineConstants>` element in `SMAPI.csproj`. Supported constants:

View File

@ -1,5 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<AssemblyName>SMAPI.Tests</AssemblyName> <AssemblyName>SMAPI.Tests</AssemblyName>
<RootNamespace>SMAPI.Tests</RootNamespace> <RootNamespace>SMAPI.Tests</RootNamespace>
@ -33,5 +32,4 @@
</ItemGroup> </ItemGroup>
<Import Project="..\..\build\common.targets" /> <Import Project="..\..\build\common.targets" />
</Project> </Project>

View File

@ -89,13 +89,6 @@ namespace StardewModdingAPI.Toolkit.Framework
: "StardewValley.exe"; : "StardewValley.exe";
} }
/// <summary>Get whether the platform uses Mono.</summary>
/// <param name="platform">The current platform.</param>
public static bool IsMono(string platform)
{
return platform == nameof(Platform.Linux) || platform == nameof(Platform.Mac);
}
/********* /*********
** Private methods ** Private methods

View File

@ -46,12 +46,5 @@ namespace StardewModdingAPI.Toolkit.Utilities
{ {
return LowLevelEnvironmentUtility.GetExecutableName(platform.ToString()); return LowLevelEnvironmentUtility.GetExecutableName(platform.ToString());
} }
/// <summary>Get whether the platform uses Mono.</summary>
/// <param name="platform">The current platform.</param>
public static bool IsMono(this Platform platform)
{
return LowLevelEnvironmentUtility.IsMono(platform.ToString());
}
} }
} }

View File

@ -1,5 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk.Web"> <Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup> <PropertyGroup>
<AssemblyName>SMAPI.Web</AssemblyName> <AssemblyName>SMAPI.Web</AssemblyName>
<RootNamespace>StardewModdingAPI.Web</RootNamespace> <RootNamespace>StardewModdingAPI.Web</RootNamespace>
@ -47,5 +46,4 @@
</ItemGroup> </ItemGroup>
<Import Project="..\..\build\common.targets" /> <Import Project="..\..\build\common.targets" />
</Project> </Project>