Revision: 7357
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7357&view=rev
Author:   efiring
Date:     2009-08-05 00:11:42 +0000 (Wed, 05 Aug 2009)

Log Message:
-----------
Remove unused argument from data_init in cntr.c

Modified Paths:
--------------
    trunk/matplotlib/src/cntr.c

Modified: trunk/matplotlib/src/cntr.c
===================================================================
--- trunk/matplotlib/src/cntr.c 2009-08-05 00:05:37 UTC (rev 7356)
+++ trunk/matplotlib/src/cntr.c 2009-08-05 00:11:42 UTC (rev 7357)
@@ -291,7 +291,7 @@
 static long curve_tracer (Csite * site, int pass2);
 
 /* this initializes the data array for curve_tracer */
-static void data_init (Csite * site, int region, long nchunk);
+static void data_init (Csite * site, long nchunk);
 
 /* ------------------------------------------------------------------------ */
 
@@ -974,13 +974,8 @@
 
 /* ------------------------------------------------------------------------ */
 
-/* The sole function of the "region" argument is to specify the
-   value in Csite.reg that denotes a missing zone.  We always
-   use zero.
-*/
-
 static void
-data_init (Csite * site, int region, long nchunk)
+data_init (Csite * site, long nchunk)
 {
     Cdata * data = site->data;
     long imax = site->imax;
@@ -1050,8 +1045,7 @@
             data[ij + imax + 1] = 0;
             if (reg)
             {
-                if (region ? (reg[ij + imax + 1] == region)
-                    : (reg[ij + imax + 1] != 0))
+                if (reg[ij + imax + 1] != 0)
                     data[ij + imax + 1] = ZONE_EX;
             }
             else
@@ -1403,7 +1397,7 @@
         site->zlevel[1] = levels[1];
     }
     site->n = site->count = 0;
-    data_init (site, 0, nchunk);
+    data_init (site, nchunk);
 
     /* make first pass to compute required sizes for second pass */
     for (;;)


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

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to