Skip to content

Commit

Permalink
Removed unneeded imports
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-bures committed Dec 30, 2023
1 parent 44fdffd commit f759c5b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
3 changes: 1 addition & 2 deletions src/SpaceWarp.Core/Patching/ColorsPatch.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System.Reflection;
using BepInEx.Logging;
using Castle.Core.Internal;
using HarmonyLib;
using KSP.Game;
using KSP.Modules;
Expand Down Expand Up @@ -321,7 +320,7 @@ internal static void Prefix()
internal static void Postfix(Module_Color __instance)
{
var partName = __instance.OABPart is not null ? __instance.OABPart.PartName : __instance.part.Name;
if (partName.IsNullOrEmpty()) return;
if (string.IsNullOrEmpty(partName)) return;
var trimmedPartName = TrimPartName(partName);
if (DeclaredParts.Count <= 0 || !_allParts.Contains(trimmedPartName)) return;

Expand Down
3 changes: 0 additions & 3 deletions src/SpaceWarp.Core/SpaceWarpPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
using KSP.ScriptInterop.impl.moonsharp;
using MoonSharp.Interpreter;
using MoonSharp.Interpreter.Interop;
using SpaceWarp.API.Configuration;
using SpaceWarp.API.Loading;
using SpaceWarp.API.Lua;
using SpaceWarp.API.Mods;
Expand Down Expand Up @@ -38,8 +37,6 @@ public sealed class SpaceWarpPlugin : BaseSpaceWarpPlugin

public SpaceWarpPlugin()
{


// Load the type forwarders
Assembly.LoadFile(
$"{new FileInfo(Assembly.GetExecutingAssembly().Location).Directory.FullName}\\SpaceWarp.dll");
Expand Down

0 comments on commit f759c5b

Please sign in to comment.