Skip to content

Commit 9f4b73b

Browse files
authored
fix: clean up final 16 no-unused-vars warnings (#22751)
1 parent bd29004 commit 9f4b73b

13 files changed

Lines changed: 8 additions & 37 deletions

File tree

packages/app/src/components/terminal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ export const Terminal = (props: TerminalProps) => {
191191
const scrollY = typeof local.pty.scrollY === "number" ? local.pty.scrollY : undefined
192192
let ws: WebSocket | undefined
193193
let term: Term | undefined
194-
let ghostty: Ghostty
194+
let _ghostty: Ghostty
195195
let serializeAddon: SerializeAddon
196196
let fitAddon: FitAddon
197197
let handleResize: () => void
@@ -372,7 +372,7 @@ export const Terminal = (props: TerminalProps) => {
372372
cleanup()
373373
return
374374
}
375-
ghostty = g
375+
_ghostty = g
376376
term = t
377377
output = terminalWriter((data, done) =>
378378
t.write(data, () => {

packages/app/src/i18n/ko.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { dict as en } from "./en"
2-
31
export const dict = {
42
"command.category.suggested": "추천",
53
"command.category.view": "보기",

packages/app/src/pages/session.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,6 @@ export default function Page() {
432432
const info = createMemo(() => (params.id ? sync.session.get(params.id) : undefined))
433433
const isChildSession = createMemo(() => !!info()?.parentID)
434434
const diffs = createMemo(() => (params.id ? list(sync.data.session_diff[params.id]) : []))
435-
const sessionCount = createMemo(() => Math.max(info()?.summary?.files ?? 0, diffs().length))
436435
const canReview = createMemo(() => !!sync.project)
437436
const reviewTab = createMemo(() => isDesktop())
438437
const tabState = createSessionTabs({

packages/console/app/src/routes/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import { Header } from "~/component/header"
1212
import { Footer } from "~/component/footer"
1313
import { Legal } from "~/component/legal"
1414
import { github } from "~/lib/github"
15-
import { createMemo } from "solid-js"
1615
import { config } from "~/config"
1716
import { useI18n } from "~/context/i18n"
1817
import { useLanguage } from "~/context/language"
@@ -30,7 +29,7 @@ function CopyStatus() {
3029
export default function Home() {
3130
const i18n = useI18n()
3231
const language = useLanguage()
33-
const githubData = createAsync(() => github())
32+
const _githubData = createAsync(() => github())
3433
const handleCopyClick = (event: Event) => {
3534
const button = event.currentTarget as HTMLButtonElement
3635
const text = button.textContent

packages/opencode/script/postinstall.mjs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -68,23 +68,6 @@ function findBinary() {
6868
}
6969
}
7070

71-
function prepareBinDirectory(binaryName) {
72-
const binDir = path.join(__dirname, "bin")
73-
const targetPath = path.join(binDir, binaryName)
74-
75-
// Ensure bin directory exists
76-
if (!fs.existsSync(binDir)) {
77-
fs.mkdirSync(binDir, { recursive: true })
78-
}
79-
80-
// Remove existing binary/symlink if it exists
81-
if (fs.existsSync(targetPath)) {
82-
fs.unlinkSync(targetPath)
83-
}
84-
85-
return { binDir, targetPath }
86-
}
87-
8871
async function main() {
8972
try {
9073
if (os.platform() === "win32") {

packages/opencode/src/config/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1297,7 +1297,7 @@ export const layer: Layer.Layer<
12971297
yield* Effect.promise(() => Npm.install(dir))
12981298
})
12991299

1300-
const installDependencies = Effect.fn("Config.installDependencies")(function* (dir: string, input?: InstallInput) {
1300+
const installDependencies = Effect.fn("Config.installDependencies")(function* (dir: string, _input?: InstallInput) {
13011301
if (
13021302
!(yield* fs.access(dir, { writable: true }).pipe(
13031303
Effect.as(true),

packages/opencode/src/session/llm.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,11 +277,10 @@ export namespace LLM {
277277
}
278278

279279
const id = PermissionID.ascending()
280-
let reply: Permission.Reply | undefined
281280
let unsub: (() => void) | undefined
282281
try {
283282
unsub = Bus.subscribe(Permission.Event.Replied, (evt) => {
284-
if (evt.properties.requestID === id) reply = evt.properties.reply
283+
if (evt.properties.requestID === id) void evt.properties.reply
285284
})
286285
const toolPatterns = approvalTools.map((t: { name: string; args: string }) => {
287286
try {

packages/opencode/test/acp/event-subscription.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -463,9 +463,9 @@ describe("acp.agent event subscription", () => {
463463

464464
// Make permission request for session A block until we release it
465465
const originalRequestPermission = connection.requestPermission.bind(connection)
466-
let permissionCalls = 0
466+
let _permissionCalls = 0
467467
connection.requestPermission = async (params: RequestPermissionParams) => {
468-
permissionCalls++
468+
_permissionCalls++
469469
if (params.sessionId.endsWith("1")) {
470470
await permissionABlocking
471471
}

packages/opencode/test/config/config.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,6 @@ it.live("dedupes concurrent config dependency installs for the same dir", () =>
858858
let calls = 0
859859
const online = spyOn(Network, "online").mockReturnValue(false)
860860
const ready = Deferred.makeUnsafe<void>()
861-
const blocked = Deferred.makeUnsafe<void>()
862861
const hold = Deferred.makeUnsafe<void>()
863862
const target = path.normalize(dir)
864863
const run = spyOn(Npm, "install").mockImplementation(async (d: string) => {
@@ -921,7 +920,6 @@ it.live("serializes config dependency installs across dirs", () =>
921920
let open = 0
922921
let peak = 0
923922
const ready = Deferred.makeUnsafe<void>()
924-
const blocked = Deferred.makeUnsafe<void>()
925923
const hold = Deferred.makeUnsafe<void>()
926924

927925
const online = spyOn(Network, "online").mockReturnValue(false)

packages/opencode/test/effect/runner.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,6 @@ describe("Runner", () => {
395395
Effect.gen(function* () {
396396
const s = yield* Scope.Scope
397397
const runner = Runner.make<string>(s)
398-
const gate = yield* Deferred.make<void>()
399398

400399
const sh = yield* runner.startShell(Effect.never.pipe(Effect.as("aborted"))).pipe(Effect.forkChild)
401400
yield* Effect.sleep("10 millis")

0 commit comments

Comments
 (0)