/// <summary> /// Checks the model for unused element /// </summary> public void CheckDeadModel() { Util.DontNotify(() => { // Rebuilds everything EFSSystem.Compiler.Compile_Synchronous(EFSSystem.ShouldRebuild); EFSSystem.ShouldRebuild = false; // Check dead model UsageChecker visitor = new UsageChecker(this); visitor.visit(this, true); }); }
/// <summary> /// Checks the model for unused element /// </summary> public void CheckDeadModel() { Util.DontNotify(() => { // Rebuilds everything EFSSystem.Compiler.Compile_Synchronous(EFSSystem.ShouldRebuild); EFSSystem.ShouldRebuild = false; MarkingHistory.PerformMark(() => { // Check dead model UsageChecker visitor = new UsageChecker(this); visitor.visit(this, true); }); }); }