code_style: remove unused code

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo 2025-04-08 20:20:20 +08:00
parent 5d90c2ed60
commit 3b18ee0b37
No known key found for this signature in database
2 changed files with 2 additions and 10 deletions

View file

@ -14,7 +14,7 @@ namespace SourceGit.Commands
[GeneratedRegex(@"^R[0-9]{0,4}\s+(.+)$")] [GeneratedRegex(@"^R[0-9]{0,4}\s+(.+)$")]
private static partial Regex REG_RENAME_FORMAT(); private static partial Regex REG_RENAME_FORMAT();
public QueryStashChanges(string repo, string stash) public QueryStashChanges(string repo, string stash)
{ {
WorkingDirectory = repo; WorkingDirectory = repo;
Context = repo; Context = repo;

View file

@ -107,15 +107,7 @@ namespace SourceGit.Models
public string Server public string Server
{ {
get => _server; get => _server;
set set => SetProperty(ref _server, value);
{
// 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);
}
} }
public string ApiKey public string ApiKey