From 8298ae56e61171bf02a59543a980643964c8d599 Mon Sep 17 00:00:00 2001 From: Jihoon Kang Date: Thu, 13 Jun 2024 21:30:15 +0000 Subject: [PATCH] Cleanup ImageInterface.SetImageVariation This change modifies the interface method of ImageInterface.SetImageVariation so that the image variation is set directly at the caller image variation module, instead of passing the pointer to set the image variation. Test: m nothing Change-Id: Ice92b2496dbe9e342edf5542946620ae409f7d4f --- build/soong/selinux_contexts.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/soong/selinux_contexts.go b/build/soong/selinux_contexts.go index d0bbc285e..a65de356f 100644 --- a/build/soong/selinux_contexts.go +++ b/build/soong/selinux_contexts.go @@ -255,7 +255,7 @@ func (m *selinuxContextsModule) ExtraImageVariations(ctx android.BaseModuleConte return nil } -func (m *selinuxContextsModule) SetImageVariation(ctx android.BaseModuleContext, variation string, module android.Module) { +func (m *selinuxContextsModule) SetImageVariation(ctx android.BaseModuleContext, variation string) { } var _ android.ImageInterface = (*selinuxContextsModule)(nil) @@ -730,7 +730,7 @@ func (m *contextsTestModule) ExtraImageVariations(ctx android.BaseModuleContext) return nil } -func (m *contextsTestModule) SetImageVariation(ctx android.BaseModuleContext, variation string, module android.Module) { +func (m *contextsTestModule) SetImageVariation(ctx android.BaseModuleContext, variation string) { } var _ android.ImageInterface = (*contextsTestModule)(nil)