Skip to content

Commit 3b18ee0

Browse files
committed
code_style: remove unused code
Signed-off-by: leo <[email protected]>
1 parent 5d90c2e commit 3b18ee0

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

src/Commands/QueryStashChanges.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public partial class QueryStashChanges : Command
1414
[GeneratedRegex(@"^R[0-9]{0,4}\s+(.+)$")]
1515
private static partial Regex REG_RENAME_FORMAT();
1616

17-
public QueryStashChanges(string repo, string stash)
17+
public QueryStashChanges(string repo, string stash)
1818
{
1919
WorkingDirectory = repo;
2020
Context = repo;

src/Models/OpenAI.cs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -107,15 +107,7 @@ public string Name
107107
public string Server
108108
{
109109
get => _server;
110-
set
111-
{
112-
// migrate old server value
113-
if (!string.IsNullOrEmpty(value) && value.EndsWith("/chat/completions", StringComparison.Ordinal))
114-
{
115-
value = value.Substring(0, value.Length - "/chat/completions".Length);
116-
}
117-
SetProperty(ref _server, value);
118-
}
110+
set => SetProperty(ref _server, value);
119111
}
120112

121113
public string ApiKey

0 commit comments

Comments
 (0)