From 78e7b493928421e28aeaa0934ccce987b296f52e Mon Sep 17 00:00:00 2001 From: Ryan Gribble Date: Sat, 27 Feb 2016 00:52:31 +1000 Subject: [PATCH] Now the private funtion it not obsolete, errors are thrown unless #pragma warning disable is used --- Octokit/Helpers/ModelExtensions.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Octokit/Helpers/ModelExtensions.cs b/Octokit/Helpers/ModelExtensions.cs index 76f11fded4..ab5cf8c0fb 100644 --- a/Octokit/Helpers/ModelExtensions.cs +++ b/Octokit/Helpers/ModelExtensions.cs @@ -46,10 +46,12 @@ public static bool HasSameDataAs(this SshKey key, SshKey otherKey) return keyData != null && keyData == otherKey.GetKeyData(); } +#pragma warning disable CS0618 static string GetKeyData(this SshKey key) { var keyInfo = key.GetKeyDataAndName(); return keyInfo == null ? null : keyInfo.Data; } +#pragma warning restore CS0618 } }