Ejemplo n.º 1
0
        /// <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);
            });
        }
Ejemplo n.º 2
0
        /// <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);
                });
            });
        }