Revision: 56296
          http://sourceforge.net/p/brlcad/code/56296
Author:   brlcad
Date:     2013-07-28 17:00:42 +0000 (Sun, 28 Jul 2013)
Log Message:
-----------
more dead code elimination

Modified Paths:
--------------
    brlcad/trunk/src/libged/human.c
    brlcad/trunk/src/libged/inside.c

Modified: brlcad/trunk/src/libged/human.c
===================================================================
--- brlcad/trunk/src/libged/human.c     2013-07-28 16:54:30 UTC (rev 56295)
+++ brlcad/trunk/src/libged/human.c     2013-07-28 17:00:42 UTC (rev 56296)
@@ -1510,61 +1510,7 @@
 }
 
 
-#if 0
 /**
- * Goes through the human struct and sets all measurements to needed
- * measurements, i.e. if certain percentile person is needed, those
- * measurements are set.
- */
-HIDDEN void
-setMeasurements(struct human_data_t *UNUSED(dude), fastf_t percentile)
-{
-    /* If percentile, load data from database or something */
-
-    /* Standing height from this point on will be derived from gathered values
-     * so it will be a combination of leglength, torsolength, and headsize. So 
standing
-     * height itself is now mostly irrelevant
-     */
-    bu_log("Setting %.0f percentile data\n", percentile);
-
-/*     Find a method of database storage first, then apply those values to 
here */
-    dude->head.headSize=
-       dude->head.neckLength=
-       dude->head.neckWidth=
-
-       dude->torso.topTorsoLength=
-       dude->torso.lowTorsoLength=
-       dude->torso.shoulderWidth=
-       dude->torso.shoulderDepth=
-       dude->torso.abWidth=
-       dude->torso.abDepth=
-       dude->torso.pelvisWidth=
-       dude->torso.pelvisDepth=
-       dude->torso.torsoLength= dude->torso.topTorsoLength + 
dude->torso.lowTorsoLength;
-
-    dude->arms.upperArmWidth=
-       dude->arms.upperArmLength=
-       dude->arms.lowerArmLength=
-       dude->arms.elbowWidth=
-       dude->arms.wristWidth=
-       dude->arms.handLength=
-       dude->arms.handWidth=
-       dude->arms.armLength=dude->arms.upperArmLength + 
dude->arms.lowerArmLength + dude->arms.handLength;
-
-    dude->legs.thighLength=
-       dude->legs.thighWidth=
-       dude->legs.calfLength=
-       dude->legs.kneeWidth=
-       dude->legs.footLength=
-       dude->legs.ankleWidth=
-       dude->legs.toeWidth=
-       dude->legs.legLength=dude->legs.thighLength + dude->legs.calfLength;
-
-    dude.height=(dude->torso.torsoLength + dude->legs.legLength + 
dude->head.headSize);
-}
-#endif
-
-/**
  * Help message printed when -h/-? option is supplied
  */
 HIDDEN void
@@ -2282,8 +2228,6 @@
     bu_log("%.2f %.2f %.2f\n", location[X], location[Y], location[Z]);
 
 /******MAGIC******/
-/*Magically set pose, and apply pose to human geometry*/
-    /*setMeasurements(&human_data, percentile);*/
 
     /* This applies the generic end-name to the high-level object */
     bu_log("%s\n", topLevel);

Modified: brlcad/trunk/src/libged/inside.c
===================================================================
--- brlcad/trunk/src/libged/inside.c    2013-07-28 16:54:30 UTC (rev 56295)
+++ brlcad/trunk/src/libged/inside.c    2013-07-28 17:00:42 UTC (rev 56296)
@@ -757,18 +757,6 @@
     VJOIN2(rpc->rpc_V, rpc->rpc_V, thick[0], Hu, thick[2], Bu);
     VSCALE(rpc->rpc_H, Hu, MAGNITUDE(rpc->rpc_H) - thick[0] - thick[1]);
     VSCALE(rpc->rpc_B, Bu, b - thick[2] - thick[3]);
-#if 0
-    bp = b - thick[2] - thick[3];
-    rp = rpc->rpc_r - thick[3];        /* !!! ESTIMATE !!! */
-    yp = rp * sqrt((bp - thick[2])/bp);
-    VSET(Norm,
-        0.,
-        2 * bp * yp/(rp * rp),
-        -1.0);
-    VUNITIZE(Norm)
-       th = thick[3] / Norm[Y];
-    rpc->rpc_r -= th;
-#endif
     rpc->rpc_r -= thick[3];
 
     return GED_OK;

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