From 3e13e4bbec71f31b12ad7b4121bbeb9e13e4e544 Mon Sep 17 00:00:00 2001 From: "Mr. Blue" Date: Mon, 11 Sep 2023 16:27:04 +0200 Subject: [PATCH] Move branch logic into core --- src/RustExtension.cs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/RustExtension.cs b/src/RustExtension.cs index 6fe516dc1..173a41e89 100644 --- a/src/RustExtension.cs +++ b/src/RustExtension.cs @@ -19,10 +19,6 @@ public class RustExtension : Extension internal static AssemblyName AssemblyName = Assembly.GetName(); internal static VersionNumber AssemblyVersion = new VersionNumber(AssemblyName.Version.Major, AssemblyName.Version.Minor, AssemblyName.Version.Build); internal static string AssemblyAuthors = ((AssemblyCompanyAttribute)Attribute.GetCustomAttribute(Assembly, typeof(AssemblyCompanyAttribute), false)).Company; - internal static string AssemblyBranch = - Attribute.GetCustomAttributes(Assembly, typeof(AssemblyMetadataAttribute)) - .Cast() - .Single(attr => attr.Key == "GitBranch").Value; private static readonly WebClient WebClient = new WebClient(); private static VersionNumber LatestExtVersion = AssemblyVersion; @@ -47,11 +43,6 @@ public class RustExtension : Extension /// public override VersionNumber Version => AssemblyVersion; - /// - /// Gets the branch of this extension - /// - public override string Branch => AssemblyBranch; - /// /// Default game-specific references for use in plugins ///