ZeroInstall.DesktopIntegration.IntegrationManager.RemoveAppInternal C# (CSharp) Method

RemoveAppInternal() protected method

protected RemoveAppInternal ( AppEntry appEntry ) : void
appEntry AppEntry
return void
        protected override void RemoveAppInternal(AppEntry appEntry)
        {
            #region Sanity checks
            if (appEntry == null) throw new ArgumentNullException(nameof(appEntry));
            #endregion

            DeleteAppDir(appEntry);

            if (appEntry.AccessPoints != null)
            {
                // Unapply any remaining access points
                foreach (var accessPoint in appEntry.AccessPoints.Entries)
                    accessPoint.Unapply(appEntry, MachineWide);
            }

            AppList.Entries.Remove(appEntry);
        }