Skip to content

Commit

Permalink
Move branch logic into core
Browse files Browse the repository at this point in the history
  • Loading branch information
MrBlue committed Sep 11, 2023
1 parent 98c46fa commit 3e13e4b
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/RustExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<AssemblyMetadataAttribute>()
.Single(attr => attr.Key == "GitBranch").Value;

private static readonly WebClient WebClient = new WebClient();
private static VersionNumber LatestExtVersion = AssemblyVersion;
Expand All @@ -47,11 +43,6 @@ public class RustExtension : Extension
/// </summary>
public override VersionNumber Version => AssemblyVersion;

/// <summary>
/// Gets the branch of this extension
/// </summary>
public override string Branch => AssemblyBranch;

/// <summary>
/// Default game-specific references for use in plugins
/// </summary>
Expand Down

0 comments on commit 3e13e4b

Please sign in to comment.