From bec26d5a14e7ac6f1d97ff533bf5275577bb30db Mon Sep 17 00:00:00 2001 From: riccardom Date: Mon, 15 Jun 2026 13:01:04 +0200 Subject: [PATCH] Removes dead code --- client/android/mdm.go | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/client/android/mdm.go b/client/android/mdm.go index 5f76de602..2a72dfe78 100644 --- a/client/android/mdm.go +++ b/client/android/mdm.go @@ -60,20 +60,3 @@ func SetMobilePolicyFetcher(p PolicyFetcher) { } mdm.SetMobilePolicyFetcher(&jsonFetcherAdapter{inner: p}) } - -// OnMDMPolicyChanged is the mobile entry point the native layer calls -// when the OS broadcasts a managed-config change -// (ACTION_APPLICATION_RESTRICTIONS_CHANGED on Android, -// UserDefaults.didChangeNotification on iOS). The hook cancels the -// current engine context so the current Run() returns; the native -// loop is expected to re-invoke Run() afterwards, which re-reads -// the config (including the fresh MDM overlay via the registered -// PolicyFetcher). -// -// No payload is passed — the OS notification only signals "something -// changed"; the actual values are read on-demand by the next -// loadPlatformPolicy call inside Config.apply. -func (c *Client) OnMDMPolicyChanged() { - log.Info("MDM policy change signaled by native; stopping engine to restart with fresh config") - c.Stop() -}