From 3e1f7d6d92a1200807afe0e380dcfc1e849f7d8d Mon Sep 17 00:00:00 2001 From: Pieter-Jan Briers Date: Fri, 19 Apr 2019 23:44:28 +0200 Subject: [PATCH] Fix compiler warnings. --- Content.Client/Chat/ChatManager.cs | 2 -- Content.Client/Construction/ConstructionMenu.cs | 6 +++--- Content.Server/MoMMILink.cs | 2 ++ 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Content.Client/Chat/ChatManager.cs b/Content.Client/Chat/ChatManager.cs index 91daab3b15..08cea601ef 100644 --- a/Content.Client/Chat/ChatManager.cs +++ b/Content.Client/Chat/ChatManager.cs @@ -2,7 +2,6 @@ using System; using Content.Client.Interfaces.Chat; using Content.Shared.Chat; using Robust.Client.Console; -using Robust.Shared.Interfaces.GameObjects; using Robust.Shared.Interfaces.Network; using Robust.Shared.IoC; using Robust.Shared.Log; @@ -20,7 +19,6 @@ namespace Content.Client.Chat #pragma warning disable 649 [Dependency] private readonly IClientNetManager _netManager; [Dependency] private readonly IClientConsole _console; - [Dependency] private readonly IEntityManager _entityManager; #pragma warning restore 649 private ChatBox _currentChatBox; diff --git a/Content.Client/Construction/ConstructionMenu.cs b/Content.Client/Construction/ConstructionMenu.cs index c319cff27e..9ac87ace82 100644 --- a/Content.Client/Construction/ConstructionMenu.cs +++ b/Content.Client/Construction/ConstructionMenu.cs @@ -275,8 +275,8 @@ namespace Content.Client.Construction } var item = RecipeList.CreateItem(ItemForNode(node.Parent)); - item.SetText(0, node.Name); - item.SetSelectable(0, false); + item.Text = node.Name; + item.Selectable = false; categoryItems[node.FlattenedIndex] = item; return item; } @@ -312,7 +312,7 @@ namespace Content.Client.Construction } } var subItem = RecipeList.CreateItem(ItemForNode(node)); - subItem.SetText(0, prototype.Name); + subItem.Text = prototype.Name; subItem.Metadata = prototype; } } diff --git a/Content.Server/MoMMILink.cs b/Content.Server/MoMMILink.cs index 1eecfc0864..868378007e 100644 --- a/Content.Server/MoMMILink.cs +++ b/Content.Server/MoMMILink.cs @@ -144,11 +144,13 @@ namespace Content.Server [JsonObject(MemberSerialization.Fields, ItemRequired = Required.Always)] private class OOCPostMessage { + #pragma warning disable CS0649 [JsonProperty("password")] public string Password; [JsonProperty("sender")] public string Sender; [JsonProperty("contents")] public string Contents; + #pragma warning restore CS0649 } } }