code_style: remove unused code

This commit is contained in:
leo 2024-07-22 16:41:35 +08:00
parent 5b5fc104e5
commit 888bf54303
No known key found for this signature in database

View file

@ -1,18 +1,14 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Text.RegularExpressions;
namespace SourceGit.Commands namespace SourceGit.Commands
{ {
public partial class QueryBranches : Command public class QueryBranches : Command
{ {
private const string PREFIX_LOCAL = "refs/heads/"; private const string PREFIX_LOCAL = "refs/heads/";
private const string PREFIX_REMOTE = "refs/remotes/"; private const string PREFIX_REMOTE = "refs/remotes/";
private const string PREFIX_DETACHED = "(HEAD detached at"; private const string PREFIX_DETACHED = "(HEAD detached at";
[GeneratedRegex(@"^(\d+)\s(\d+)$")]
private static partial Regex REG_AHEAD_BEHIND();
public QueryBranches(string repo) public QueryBranches(string repo)
{ {
WorkingDirectory = repo; WorkingDirectory = repo;