From c058ffebc966b5ed71bc4834478fbff0e3ae552a Mon Sep 17 00:00:00 2001 From: tisfeng Date: Mon, 8 Jul 2024 21:30:24 +0800 Subject: [PATCH] style: remove unused code --- Easydict/Swift/Service/OpenAI/BaseOpenAIService.swift | 2 -- Easydict/Swift/Service/OpenAI/LLMStreamService.swift | 2 -- Easydict/objc/Service/Niutrans/EZNiuTransTranslate.m | 1 - 3 files changed, 5 deletions(-) diff --git a/Easydict/Swift/Service/OpenAI/BaseOpenAIService.swift b/Easydict/Swift/Service/OpenAI/BaseOpenAIService.swift index 7ee475ac2..1a4ae9456 100644 --- a/Easydict/Swift/Service/OpenAI/BaseOpenAIService.swift +++ b/Easydict/Swift/Service/OpenAI/BaseOpenAIService.swift @@ -11,8 +11,6 @@ import OpenAI // MARK: - BaseOpenAIService -// In order to solve the problems caused by inheriting the OpenAI service for custom OpenAI services, we had to add a new base class. FIX https://github.com/tisfeng/Easydict/pull/473#issuecomment-2022587699 - @objcMembers @objc(EZBaseOpenAIService) public class BaseOpenAIService: LLMStreamService { diff --git a/Easydict/Swift/Service/OpenAI/LLMStreamService.swift b/Easydict/Swift/Service/OpenAI/LLMStreamService.swift index 6f1f61e85..b446d0cdf 100644 --- a/Easydict/Swift/Service/OpenAI/LLMStreamService.swift +++ b/Easydict/Swift/Service/OpenAI/LLMStreamService.swift @@ -13,8 +13,6 @@ import SwiftUI // MARK: - LLMStreamService -// import SwiftUI - @objcMembers @objc(EZLLMStreamService) public class LLMStreamService: QueryService { diff --git a/Easydict/objc/Service/Niutrans/EZNiuTransTranslate.m b/Easydict/objc/Service/Niutrans/EZNiuTransTranslate.m index 8a377da4d..507a6e3b8 100644 --- a/Easydict/objc/Service/Niutrans/EZNiuTransTranslate.m +++ b/Easydict/objc/Service/Niutrans/EZNiuTransTranslate.m @@ -11,7 +11,6 @@ @interface EZNiuTransTranslate () -//@property (nonatomic, copy) NSString *defaultAPIKey; @property (nonatomic, copy) NSString *apiKey; @end