Revision: 56295
          http://sourceforge.net/p/brlcad/code/56295
Author:   brlcad
Date:     2013-07-28 16:54:30 +0000 (Sun, 28 Jul 2013)
Log Message:
-----------
remove the BU_ASSERT() that are in dead code blocks.  seem flaky logic to base 
an abort on.

Modified Paths:
--------------
    brlcad/trunk/src/libged/edit.c

Modified: brlcad/trunk/src/libged/edit.c
===================================================================
--- brlcad/trunk/src/libged/edit.c      2013-07-28 16:49:58 UTC (rev 56294)
+++ brlcad/trunk/src/libged/edit.c      2013-07-28 16:54:30 UTC (rev 56295)
@@ -1464,17 +1464,6 @@
        /* if there isn't an EDIT_TO, this func shouldn't be called */
        BU_ASSERT_PTR(cur_arg->next, !=, (struct edit_arg *)NULL);
 
-#if 0
-       /* This assertion, as it is currently, is always true. */
-
-       /* A 'from' position is set; only flags that were possible
-        * when this function was last updated should be handled.
-        */
-       BU_ASSERT(cur_arg->type ^ ~(EDIT_FROM |
-                                   EDIT_NATURAL_ORIGIN |
-                                   EDIT_USE_TARGETS));
-#endif
-
        /* disallow non-standard opts */
        if (cur_arg->cl_options[0] != '\0')
            goto err_option_unknown;
@@ -1490,19 +1479,6 @@
         */
        BU_ASSERT_PTR(cur_arg->next, !=, (struct edit_arg *)NULL);
 
-#if 0
-       /* This assertion, as it is currently, is always true. */
-
-       /* A 'TO' position is set; only flags that were possible when
-        * this function was last updated should be handled.
-        */
-       BU_ASSERT(cur_arg->type ^ ~(EDIT_TO |
-                                   EDIT_NATURAL_ORIGIN |
-                                   EDIT_REL_DIST |
-                                   EDIT_ABS_POS |
-                                   EDIT_USE_TARGETS));
-#endif
-
        /* disallow non-standard opts */
        if (cur_arg->cl_options[0] != '\0')
            goto err_option_unknown;
@@ -1543,15 +1519,6 @@
                              cmd->cmd->name, cmd->cmd->usage);
            return GED_ERROR;
        }
-#if 0
-       else {
-           /* a target obj is set; only flags that were possible when
-            * this function was last updated should be handled
-            */
-           BU_ASSERT(cur_arg->type ^ ~(EDIT_TARGET_OBJ |
-                                       EDIT_NATURAL_ORIGIN));
-       }
-#endif
 
        /* disallow non-standard opts */
        if (cur_arg->cl_options[0] != '\0')

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to