From 12b83f6f85884b7c4dc6fe0d9d0c9063a6983d5e Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Sat, 23 Dec 2017 09:36:18 -0700 Subject: [PATCH 1/3] Chop out some unused code. --- TShockAPI/Permissions.cs | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/TShockAPI/Permissions.cs b/TShockAPI/Permissions.cs index d4fb9229..2ba96a32 100644 --- a/TShockAPI/Permissions.cs +++ b/TShockAPI/Permissions.cs @@ -448,19 +448,4 @@ namespace TShockAPI File.WriteAllText("PermissionsDescriptions.txt", sb.ToString()); } } - - [AttributeUsage(AttributeTargets.Field, Inherited = false, AllowMultiple = false)] - public sealed class TodoAttribute : Attribute - { - public string Info { get; private set; } - - public TodoAttribute(string info) - { - Info = info; - } - - public TodoAttribute() - { - } - } } From 4158990bee18ff1855054814d9496aa18906d003 Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Sat, 23 Dec 2017 09:38:19 -0700 Subject: [PATCH 2/3] Turn off XML comment warnings for permissions --- TShockAPI/Permissions.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/TShockAPI/Permissions.cs b/TShockAPI/Permissions.cs index 2ba96a32..418cfae5 100644 --- a/TShockAPI/Permissions.cs +++ b/TShockAPI/Permissions.cs @@ -23,8 +23,12 @@ using System.IO; using System.Linq; using System.Text; +// Since the permission nodes have annotations that say what they are, we don't need XML comments. +#pragma warning disable 1591 + namespace TShockAPI { + /// Contains the permission nodes used in TShock. public static class Permissions { // tshock.account nodes @@ -400,6 +404,7 @@ namespace TShockAPI [Description("Player can see advanced information about any user account.")] public static readonly string advaccountinfo = "tshock.accountinfo.details"; + /// /// Lists all commands associated with a given permission /// From c2fe96921ea8ab2a48cc8cfeb9c3c03403b8ef4a Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Sat, 23 Dec 2017 09:39:59 -0700 Subject: [PATCH 3/3] Turn off XML comment warnings in REST Permissions --- TShockAPI/Rest/RestPermissions.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/TShockAPI/Rest/RestPermissions.cs b/TShockAPI/Rest/RestPermissions.cs index f93951d6..8f74cd14 100644 --- a/TShockAPI/Rest/RestPermissions.cs +++ b/TShockAPI/Rest/RestPermissions.cs @@ -18,8 +18,12 @@ along with this program. If not, see . using System.ComponentModel; +// Since the permission nodes have annotations that say what they are, we don't need XML comments. +#pragma warning disable 1591 + namespace Rests { + /// Contains the REST permission nodes used in TShock. public static class RestPermissions { // tshock.rest.bans nodes