From d0b6852cd7db2bb1214c3267719d3ac108c0a53e Mon Sep 17 00:00:00 2001 From: Ophestra Date: Thu, 28 Aug 2025 00:54:44 +0900 Subject: internal/app: remove app interface It is very clear at this point that there will not be multiple implementations of App, and the internal/app package will never move out of internal due to hsu. Signed-off-by: Ophestra --- internal/app/export_linux_test.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'internal/app/export_linux_test.go') diff --git a/internal/app/export_linux_test.go b/internal/app/export_linux_test.go index 73c9df9a..f7af527f 100644 --- a/internal/app/export_linux_test.go +++ b/internal/app/export_linux_test.go @@ -7,17 +7,16 @@ import ( "hakurei.app/system" ) -func NewWithID(id state.ID, os sys.State) App { - a := new(app) +func NewWithID(id state.ID, os sys.State) *App { + a := new(App) a.id = newID(&id) a.sys = os return a } -func AppIParams(a App, sa SealedApp) (*system.I, *container.Params) { - v := a.(*app) +func AppIParams(a *App, sa SealedApp) (*system.I, *container.Params) { seal := sa.(*outcome) - if v.outcome != seal || v.id != seal.id { + if a.outcome != seal || a.id != seal.id { panic("broken app/outcome link") } return seal.sys, seal.container -- cgit v1.3.1