mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 04:04:59 +00:00
code_style: remove unused code
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
5d90c2ed60
commit
3b18ee0b37
2 changed files with 2 additions and 10 deletions
|
@ -14,7 +14,7 @@ namespace SourceGit.Commands
|
|||
[GeneratedRegex(@"^R[0-9]{0,4}\s+(.+)$")]
|
||||
private static partial Regex REG_RENAME_FORMAT();
|
||||
|
||||
public QueryStashChanges(string repo, string stash)
|
||||
public QueryStashChanges(string repo, string stash)
|
||||
{
|
||||
WorkingDirectory = repo;
|
||||
Context = repo;
|
||||
|
|
|
@ -107,15 +107,7 @@ namespace SourceGit.Models
|
|||
public string Server
|
||||
{
|
||||
get => _server;
|
||||
set
|
||||
{
|
||||
// migrate old server value
|
||||
if (!string.IsNullOrEmpty(value) && value.EndsWith("/chat/completions", StringComparison.Ordinal))
|
||||
{
|
||||
value = value.Substring(0, value.Length - "/chat/completions".Length);
|
||||
}
|
||||
SetProperty(ref _server, value);
|
||||
}
|
||||
set => SetProperty(ref _server, value);
|
||||
}
|
||||
|
||||
public string ApiKey
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue