[Scipy-svn] r4270 - branches/refactor_fft/scipy/fftpack/src/fftpack

scipy-svn at scipy.org scipy-svn at scipy.org
Sun May 11 08:50:05 EDT 2008


Author: cdavid
Date: 2008-05-11 07:50:00 -0500 (Sun, 11 May 2008)
New Revision: 4270

Modified:
   branches/refactor_fft/scipy/fftpack/src/fftpack/drfft.cxx
   branches/refactor_fft/scipy/fftpack/src/fftpack/zfftnd.cxx
Log:
Remove dead code.

Modified: branches/refactor_fft/scipy/fftpack/src/fftpack/drfft.cxx
===================================================================
--- branches/refactor_fft/scipy/fftpack/src/fftpack/drfft.cxx	2008-05-11 12:49:09 UTC (rev 4269)
+++ branches/refactor_fft/scipy/fftpack/src/fftpack/drfft.cxx	2008-05-11 12:50:00 UTC (rev 4270)
@@ -1,5 +1,5 @@
 /*
- * Last Change: Sun May 11 08:00 PM 2008 J
+ * Last Change: Sun May 11 09:00 PM 2008 J
  *
  * FFTPACK implementation
  *
@@ -75,17 +75,6 @@
 
 static CacheManager<RFFTPackCacheId, RFFTPackCache> rfftpack_cmgr(10);
 
-#if 0
-GEN_CACHE(drfftpack, (int n)
-	  , double *wsave;
-	  , (caches_drfftpack[i].n == n)
-	  , caches_drfftpack[id].wsave =
-	  (double *) malloc(sizeof(double) * (2 * n + 15));
-	  F_FUNC(dffti, DFFTI) (&n, caches_drfftpack[id].wsave);
-	  , free(caches_drfftpack[id].wsave);
-	  , 10)
-#endif
-
 /*
  * Stub to make GEN_PUBLIC_API api
  */

Modified: branches/refactor_fft/scipy/fftpack/src/fftpack/zfftnd.cxx
===================================================================
--- branches/refactor_fft/scipy/fftpack/src/fftpack/zfftnd.cxx	2008-05-11 12:49:09 UTC (rev 4269)
+++ branches/refactor_fft/scipy/fftpack/src/fftpack/zfftnd.cxx	2008-05-11 12:50:00 UTC (rev 4270)
@@ -136,27 +136,11 @@
 
 static CacheManager<NDFFTPackCacheId, NDFFTPackCache> ndfftpack_cmgr(10);
 
-#if 0
 /* stub to make PUBLIC_GEN_API happy */
 static void destroy_zfftnd_fftpack_caches()
 {
 }
-#endif
 
-GEN_CACHE(zfftnd_fftpack, (int n, int rank)
-	  , complex_double * ptr; int *iptr; int rank;
-	  , ((caches_zfftnd_fftpack[i].n == n)
-	     && (caches_zfftnd_fftpack[i].rank == rank))
-	  , caches_zfftnd_fftpack[id].n = n;
-	  caches_zfftnd_fftpack[id].ptr =
-	  (complex_double *) malloc(2 * sizeof(double) * n);
-	  caches_zfftnd_fftpack[id].iptr =
-	  (int *) malloc(4 * rank * sizeof(int));
-	  ,
-	  free(caches_zfftnd_fftpack[id].ptr);
-	  free(caches_zfftnd_fftpack[id].iptr);
-	  , 10)
-
 static
 /*inline : disabled because MSVC6.0 fails to compile it. */
 int next_comb(int *ia, int *da, int m)




More information about the Scipy-svn mailing list