Skip to content

Commit 36c817f

Browse files
bealqiuclaude
andcommitted
fix: remove unused variables causing TS6133 CI build failures
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent b37e0dd commit 36c817f

4 files changed

Lines changed: 2 additions & 17 deletions

File tree

packages/app/src/components/layout/AppLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export function AppLayout() {
5757
const initTab = useReaderStore((s) => s.initTab);
5858
const readerStoreTabs = useReaderStore((s) => s.tabs);
5959
const books = useLibraryStore((s) => s.books);
60-
const { hasCompletedOnboarding, _hasHydrated } = useSettingsStore();
60+
const { hasCompletedOnboarding: _hasCompletedOnboarding, _hasHydrated } = useSettingsStore();
6161
const { t } = useTranslation();
6262

6363
// Command palette state

packages/app/src/components/onboarding/steps/AIPage.tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,6 @@ export function AIPage({ onNext, onPrev, step, totalSteps }: any) {
3939
{ id: "ollama", name: "Ollama (Local)", defaultUrl: "http://localhost:11434" },
4040
];
4141

42-
// Find the endpoint with actual config (first one with API key, or active, or first)
43-
const getConfiguredEndpoint = () => {
44-
// Priority: 1st endpoint with API key > active endpoint > first endpoint
45-
const endpointWithKey = aiConfig.endpoints.find((ep) => ep.apiKey && ep.apiKey.length > 0);
46-
const activeEndpoint = aiConfig.endpoints.find((ep) => ep.id === aiConfig.activeEndpointId);
47-
return endpointWithKey || activeEndpoint || aiConfig.endpoints[0];
48-
};
49-
5042
// Get the endpoint ID to use for syncing
5143
const syncEndpointId =
5244
aiConfig.endpoints.find((ep) => ep.apiKey && ep.apiKey.length > 0)?.id ||

packages/app/src/components/onboarding/steps/WelcomePage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { useSettingsStore } from "@readany/core/stores/settings-store";
77

88
import { OnboardingLayout } from "../OnboardingLayout";
99

10-
export function WelcomePage({ onNext, onPrev, step, totalSteps }: any) {
10+
export function WelcomePage({ onNext, onPrev: _onPrev, step, totalSteps }: any) {
1111
const { t } = useTranslation();
1212
const { completeOnboarding } = useSettingsStore();
1313

packages/core/src/rag/tokenizer.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,6 @@ function isAlphanumeric(char: string): boolean {
6969
return ALPHANUMERIC.test(char);
7070
}
7171

72-
/**
73-
* Check if a character is a word character (any script)
74-
*/
75-
function isWordChar(char: string): boolean {
76-
return isCJK(char) || isJapanese(char) || isKorean(char) || isAlphanumeric(char);
77-
}
78-
7972
/**
8073
* Normalize text: lowercase, remove extra whitespace, normalize Unicode
8174
*/

0 commit comments

Comments
 (0)