Skip to content

Commit fa204d8

Browse files
committed
chore: remove dead code - unused imports and variables
- Remove unused import OhMyOpenCodeConfig from src/index.ts - Remove unused import dirname from src/features/opencode-skill-loader/loader.ts - Remove unused import detectKeywords from src/hooks/keyword-detector/index.ts - Remove unused import CliMatch from src/tools/ast-grep/utils.ts - Prefix unused parameter _original in src/tools/ast-grep/utils.ts 🤖 GENERATED WITH ASSISTANCE OF [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode)
1 parent 924fa79 commit fa204d8

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/features/opencode-skill-loader/loader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { existsSync, readdirSync, readFileSync } from "fs"
2-
import { join, basename, dirname } from "path"
2+
import { join, basename } from "path"
33
import { homedir } from "os"
44
import yaml from "js-yaml"
55
import { parseFrontmatter } from "../../shared/frontmatter"

src/hooks/keyword-detector/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { PluginInput } from "@opencode-ai/plugin"
2-
import { detectKeywords, detectKeywordsWithType, extractPromptText } from "./detector"
2+
import { detectKeywordsWithType, extractPromptText } from "./detector"
33
import { log } from "../../shared"
44
import { injectHookMessage } from "../../features/hook-message-injector"
55

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ import {
5353
} from "./tools";
5454
import { BackgroundManager } from "./features/background-agent";
5555
import { SkillMcpManager } from "./features/skill-mcp-manager";
56-
import { type OhMyOpenCodeConfig, type HookName } from "./config";
56+
import { type HookName } from "./config";
5757
import { log } from "./shared";
5858
import { loadPluginConfig } from "./plugin-config";
5959
import { createModelCacheState, getModelLimit } from "./plugin-state";

src/tools/ast-grep/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { CliMatch, AnalyzeResult, SgResult } from "./types"
1+
import type { AnalyzeResult, SgResult } from "./types"
22

33
export function formatSearchResult(result: SgResult): string {
44
if (result.error) {
@@ -93,7 +93,7 @@ export function formatAnalyzeResult(results: AnalyzeResult[], extractedMetaVars:
9393
return lines.join("\n")
9494
}
9595

96-
export function formatTransformResult(original: string, transformed: string, editCount: number): string {
96+
export function formatTransformResult(_original: string, transformed: string, editCount: number): string {
9797
if (editCount === 0) {
9898
return "No matches found to transform"
9999
}

0 commit comments

Comments
 (0)