Revision: 56513
          http://sourceforge.net/p/brlcad/code/56513
Author:   brlcad
Date:     2013-08-04 17:47:39 +0000 (Sun, 04 Aug 2013)
Log Message:
-----------
de-k&r and remove dead code

Modified Paths:
--------------
    brlcad/trunk/src/libdm/knob.c

Modified: brlcad/trunk/src/libdm/knob.c
===================================================================
--- brlcad/trunk/src/libdm/knob.c       2013-08-04 17:45:24 UTC (rev 56512)
+++ brlcad/trunk/src/libdm/knob.c       2013-08-04 17:47:39 UTC (rev 56513)
@@ -33,10 +33,6 @@
 
 #ifdef IR_KNOBS
 
-int dm_limit();  /* provides knob dead spot */
-int dm_unlimit();  /* */
-fastf_t dm_wrap(); /* wrap given value to new value in the range (-1.0, 1.0) */
-
 /*
  *                      D M _ L I M I T
  *
@@ -46,8 +42,7 @@
  */
 
 int
-dm_limit(i)
-    int i;
+dm_limit(int i)
 {
     if ( i > NOISE )
        return i-NOISE;
@@ -62,8 +57,7 @@
  * This function reverses the effects of dm_limit.
  */
 int
-dm_unlimit(i)
-    int i;
+dm_unlimit(int i)
 {
     if ( i > 0 )
        return i + NOISE;
@@ -75,13 +69,10 @@
 /*                     D M _ W R A P
  *
  * Wrap the given value "f" to a new value in the range (-1.0, 1.0).
- * The value of f is assumed to be in the range (-2.0, 2.0).
  */
 fastf_t
-dm_wrap(f)
-    fastf_t f;
+dm_wrap(fastf_t f)
 {
-#if 1
     int i;
     fastf_t tmp_f;
 
@@ -109,13 +100,6 @@
     }
 
     return f;
-#else
-    if (f > 1.0)
-       return f - 2.0;
-    if (f < -1.0)
-       return f + 2.0;
-    return f;
-#endif
 }
 #endif
 

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


------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to