Revision: 70140
          http://sourceforge.net/p/brlcad/code/70140
Author:   brlcad
Date:     2017-08-28 03:54:01 +0000 (Mon, 28 Aug 2017)
Log Message:
-----------
the remainder of these are also pointless empty callbacks.  let them be NULL, 
reduce code.

Modified Paths:
--------------
    brlcad/trunk/src/librt/primitives/arb8/arb8.c
    brlcad/trunk/src/librt/primitives/bot/bot.c
    brlcad/trunk/src/librt/primitives/brep/brep.cpp
    brlcad/trunk/src/librt/primitives/cline/cline.c
    brlcad/trunk/src/librt/primitives/metaball/metaball.c
    brlcad/trunk/src/librt/primitives/submodel/submodel.c
    brlcad/trunk/src/librt/primitives/table.cpp

Modified: brlcad/trunk/src/librt/primitives/arb8/arb8.c
===================================================================
--- brlcad/trunk/src/librt/primitives/arb8/arb8.c       2017-08-27 21:34:11 UTC 
(rev 70139)
+++ brlcad/trunk/src/librt/primitives/arb8/arb8.c       2017-08-28 03:54:01 UTC 
(rev 70140)
@@ -1191,13 +1191,6 @@
 }
 
 
-int
-rt_arb_class(const struct soltab *UNUSED(stp), const fastf_t *UNUSED(min), 
const fastf_t *UNUSED(max), const struct bn_tol *UNUSED(tol))
-{
-    return 0;
-}
-
-
 /**
  * Import an ARB8 from the database format to the internal format.
  * There are two parts to this: First, the database is presently

Modified: brlcad/trunk/src/librt/primitives/bot/bot.c
===================================================================
--- brlcad/trunk/src/librt/primitives/bot/bot.c 2017-08-27 21:34:11 UTC (rev 
70139)
+++ brlcad/trunk/src/librt/primitives/bot/bot.c 2017-08-28 03:54:01 UTC (rev 
70140)
@@ -721,18 +721,6 @@
 }
 
 
-int
-rt_bot_class(const struct soltab *stp, const fastf_t *min, const fastf_t *max, 
const struct bn_tol *tol)
-{
-    if (stp) RT_CK_SOLTAB(stp);
-    if (tol) BN_CK_TOL(tol);
-    if (!min) return 0;
-    if (!max) return 0;
-
-    return 0;
-}
-
-
 vdsNode *
 build_vertex_tree(struct rt_bot_internal *bot)
 {

Modified: brlcad/trunk/src/librt/primitives/brep/brep.cpp
===================================================================
--- brlcad/trunk/src/librt/primitives/brep/brep.cpp     2017-08-27 21:34:11 UTC 
(rev 70139)
+++ brlcad/trunk/src/librt/primitives/brep/brep.cpp     2017-08-28 03:54:01 UTC 
(rev 70140)
@@ -80,7 +80,6 @@
 int rt_brep_shot(struct soltab *stp, register struct xray *rp, struct 
application *ap, struct seg *seghead);
 void rt_brep_norm(register struct hit *hitp, struct soltab *stp, register 
struct xray *rp);
 void rt_brep_curve(register struct curvature *cvp, register struct hit *hitp, 
struct soltab *stp);
-int rt_brep_class(const struct soltab *stp, const fastf_t *min, const fastf_t 
*max, const struct bn_tol *tol);
 void rt_brep_uv(struct application *ap, struct soltab *stp, register struct 
hit *hitp, register struct uvcoord *uvp);
 void rt_brep_free(register struct soltab *stp);
 int rt_brep_adaptive_plot(struct rt_db_internal *ip, const struct rt_view_info 
*info);
@@ -1675,18 +1674,6 @@
 }
 
 
-int
-rt_brep_class(const struct soltab *stp, const fastf_t *min, const fastf_t 
*max, const struct bn_tol *tol)
-{
-    if (stp) RT_CK_SOLTAB(stp);
-    if (tol) BN_CK_TOL(tol);
-    if (!min) return 0;
-    if (!max) return 0;
-
-    return 0;
-}
-
-
 /**
  * For a hit on the surface of an nurb, return the (u, v) coordinates
  * of the hit point, 0 <= u, v <= 1

Modified: brlcad/trunk/src/librt/primitives/cline/cline.c
===================================================================
--- brlcad/trunk/src/librt/primitives/cline/cline.c     2017-08-27 21:34:11 UTC 
(rev 70139)
+++ brlcad/trunk/src/librt/primitives/cline/cline.c     2017-08-28 03:54:01 UTC 
(rev 70140)
@@ -428,18 +428,6 @@
 
 
 int
-rt_cline_class(const struct soltab *stp, const fastf_t *min, const fastf_t 
*max, const struct bn_tol *tol)
-{
-    if (stp) RT_CK_SOLTAB(stp);
-    if (!min) return 0;
-    if (!max) return 0;
-    if (tol) BN_CK_TOL(tol);
-
-    return 0;
-}
-
-
-int
 rt_cline_plot(struct bu_list *vhead, struct rt_db_internal *ip, const struct 
rt_tess_tol *UNUSED(ttol), const struct bn_tol *UNUSED(tol), const struct 
rt_view_info *UNUSED(info))
 {
     struct rt_cline_internal *cline_ip;

Modified: brlcad/trunk/src/librt/primitives/metaball/metaball.c
===================================================================
--- brlcad/trunk/src/librt/primitives/metaball/metaball.c       2017-08-27 
21:34:11 UTC (rev 70139)
+++ brlcad/trunk/src/librt/primitives/metaball/metaball.c       2017-08-28 
03:54:01 UTC (rev 70140)
@@ -610,18 +610,6 @@
 }
 
 
-int
-rt_metaball_class(const struct soltab *stp, const fastf_t *min, const fastf_t 
*max, const struct bn_tol *tol)
-{
-    if (stp) RT_CK_SOLTAB(stp);
-    if (tol) BN_CK_TOL(tol);
-    if (!min) return 0;
-    if (!max) return 0;
-
-    return 0;
-}
-
-
 void
 rt_metaball_plot_sph(struct bu_list *vhead, point_t *center, fastf_t radius)
 {

Modified: brlcad/trunk/src/librt/primitives/submodel/submodel.c
===================================================================
--- brlcad/trunk/src/librt/primitives/submodel/submodel.c       2017-08-27 
21:34:11 UTC (rev 70139)
+++ brlcad/trunk/src/librt/primitives/submodel/submodel.c       2017-08-28 
03:54:01 UTC (rev 70140)
@@ -607,18 +607,6 @@
 }
 
 
-int
-rt_submodel_class(const struct soltab *stp, const fastf_t *min, const fastf_t 
*max, const struct bn_tol *tol)
-{
-    if (stp) RT_CK_SOLTAB(stp);
-    if (tol) BN_CK_TOL(tol);
-    if (!min) return 0;
-    if (!max) return 0;
-
-    return 0;
-}
-
-
 struct goodies {
     struct db_i *dbip;
     struct bu_list *vheadp;

Modified: brlcad/trunk/src/librt/primitives/table.cpp
===================================================================
--- brlcad/trunk/src/librt/primitives/table.cpp 2017-08-27 21:34:11 UTC (rev 
70139)
+++ brlcad/trunk/src/librt/primitives/table.cpp 2017-08-28 03:54:01 UTC (rev 
70140)
@@ -50,7 +50,6 @@
     extern void rt_##name##_norm(struct hit *hitp, struct soltab *stp, struct 
xray *rp); \
     extern void rt_##name##_uv(struct application *ap, struct soltab *stp, 
struct hit *hitp, struct uvcoord *uvp); \
     extern void rt_##name##_curve(struct curvature *cvp, struct hit *hitp, 
struct soltab *stp); \
-    extern int rt_##name##_class(const struct soltab *, const fastf_t *, const 
fastf_t *, const struct bn_tol *); \
     extern void rt_##name##_free(struct soltab *stp); \
     extern int rt_##name##_plot(struct bu_list *vhead, struct rt_db_internal 
*ip, const struct rt_tess_tol *ttol, const struct bn_tol *tol, const struct 
rt_view_info *info); \
     extern int rt_##name##_adaptive_plot(struct rt_db_internal *ip, const 
struct rt_view_info *info); \
@@ -354,7 +353,7 @@
        NULL, /* piece_hitsegs */
        RTFUNCTAB_FUNC_UV_CAST(rt_arb_uv),
        RTFUNCTAB_FUNC_CURVE_CAST(rt_arb_curve),
-       RTFUNCTAB_FUNC_CLASS_CAST(rt_arb_class),
+       NULL, /* classify */
        RTFUNCTAB_FUNC_FREE_CAST(rt_arb_free),
        RTFUNCTAB_FUNC_PLOT_CAST(rt_arb_plot),
        NULL, /* adaptive_plot */
@@ -400,7 +399,7 @@
        RTFUNCTAB_FUNC_PIECE_HITSEGS_CAST(rt_bot_piece_hitsegs),
        RTFUNCTAB_FUNC_UV_CAST(rt_bot_uv),
        RTFUNCTAB_FUNC_CURVE_CAST(rt_bot_curve),
-       RTFUNCTAB_FUNC_CLASS_CAST(rt_bot_class),
+       NULL, /* classify */
        RTFUNCTAB_FUNC_FREE_CAST(rt_bot_free),
        RTFUNCTAB_FUNC_PLOT_CAST(rt_ars_plot),
        NULL, /* adaptive_plot */
@@ -1501,7 +1500,7 @@
        NULL, /* piece_hitsegs */
        RTFUNCTAB_FUNC_UV_CAST(rt_submodel_uv),
        RTFUNCTAB_FUNC_CURVE_CAST(rt_submodel_curve),
-       RTFUNCTAB_FUNC_CLASS_CAST(rt_submodel_class),
+       NULL, /* classify */
        RTFUNCTAB_FUNC_FREE_CAST(rt_submodel_free),
        RTFUNCTAB_FUNC_PLOT_CAST(rt_submodel_plot),
        NULL, /* adaptive_plot */
@@ -1547,7 +1546,7 @@
        NULL, /* piece_hitsegs */
        RTFUNCTAB_FUNC_UV_CAST(rt_cline_uv),
        RTFUNCTAB_FUNC_CURVE_CAST(rt_cline_curve),
-       RTFUNCTAB_FUNC_CLASS_CAST(rt_cline_class),
+       NULL, /* classify */
        RTFUNCTAB_FUNC_FREE_CAST(rt_cline_free),
        RTFUNCTAB_FUNC_PLOT_CAST(rt_cline_plot),
        NULL, /* adaptive_plot */
@@ -1593,7 +1592,7 @@
        RTFUNCTAB_FUNC_PIECE_HITSEGS_CAST(rt_bot_piece_hitsegs),
        RTFUNCTAB_FUNC_UV_CAST(rt_bot_uv),
        RTFUNCTAB_FUNC_CURVE_CAST(rt_bot_curve),
-       RTFUNCTAB_FUNC_CLASS_CAST(rt_bot_class),
+       NULL, /* classify */
        RTFUNCTAB_FUNC_FREE_CAST(rt_bot_free),
        RTFUNCTAB_FUNC_PLOT_CAST(rt_bot_plot),
        RTFUNCTAB_FUNC_ADAPTIVE_PLOT_CAST(rt_bot_adaptive_plot),
@@ -1873,7 +1872,7 @@
        NULL, /* piece_hitsegs */
        RTFUNCTAB_FUNC_UV_CAST(rt_metaball_uv),
        RTFUNCTAB_FUNC_CURVE_CAST(rt_metaball_curve),
-       RTFUNCTAB_FUNC_CLASS_CAST(rt_metaball_class),
+       NULL, /* classify */
        RTFUNCTAB_FUNC_FREE_CAST(rt_metaball_free),
        RTFUNCTAB_FUNC_PLOT_CAST(rt_metaball_plot),
        NULL, /* adaptive_plot */
@@ -1919,7 +1918,7 @@
        NULL, /* piece_hitsegs */
        RTFUNCTAB_FUNC_UV_CAST(rt_brep_uv),
        RTFUNCTAB_FUNC_CURVE_CAST(rt_brep_curve),
-       RTFUNCTAB_FUNC_CLASS_CAST(rt_brep_class),
+       NULL, /* classify */
        RTFUNCTAB_FUNC_FREE_CAST(rt_brep_free),
        RTFUNCTAB_FUNC_PLOT_CAST(rt_brep_plot),
        RTFUNCTAB_FUNC_ADAPTIVE_PLOT_CAST(rt_brep_adaptive_plot),

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


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to