From 0574f62bf58eada5860fe0620151aede85a8dae4 Mon Sep 17 00:00:00 2001 From: gfyoung Date: Sun, 20 Dec 2015 01:08:29 -0800 Subject: MAINT: Remove commented out code blocks --- tools/swig/test/testFortran.py | 10 ---------- tools/win32build/misc/x86analysis.py | 9 --------- 2 files changed, 19 deletions(-) (limited to 'tools') diff --git a/tools/swig/test/testFortran.py b/tools/swig/test/testFortran.py index c77d728e9..b7783be90 100644 --- a/tools/swig/test/testFortran.py +++ b/tools/swig/test/testFortran.py @@ -24,16 +24,6 @@ class FortranTestCase(unittest.TestCase): self.typeStr = "double" self.typeCode = "d" - # This test used to work before the update to avoid deprecated code. Now it - # doesn't work. As best I can tell, it never should have worked, so I am - # commenting it out. --WFS - # def testSecondElementContiguous(self): - # "Test Fortran matrix initialized from reshaped default array" - # print(self.typeStr, "... ", end="", file=sys.stderr) - # second = Fortran.__dict__[self.typeStr + "SecondElement"] - # matrix = np.arange(9).reshape(3, 3).astype(self.typeCode) - # self.assertEquals(second(matrix), 3) - # Test (type* IN_FARRAY2, int DIM1, int DIM2) typemap def testSecondElementFortran(self): "Test Fortran matrix initialized from reshaped NumPy fortranarray" diff --git a/tools/win32build/misc/x86analysis.py b/tools/win32build/misc/x86analysis.py index 0b5586406..870e2c980 100644 --- a/tools/win32build/misc/x86analysis.py +++ b/tools/win32build/misc/x86analysis.py @@ -132,8 +132,6 @@ def cntset(seq): return cnt def main(): - #parser = optparse.OptionParser() - #parser.add_option("-f", "--filename args = sys.argv[1:] filename = args[0] analyse(filename) @@ -146,11 +144,6 @@ def analyse(filename): sse = has_sse(inst) sse2 = has_sse2(inst) sse3 = has_sse3(inst) - #mmx = has_mmx(inst) - #ppro = has_ppro(inst) - #print(sse) - #print(sse2) - #print(sse3) print("SSE3 inst %d" % cntset(sse3)) print("SSE2 inst %d" % cntset(sse2)) print("SSE inst %d" % cntset(sse)) @@ -158,5 +151,3 @@ def analyse(filename): if __name__ == '__main__': main() - #filename = "/usr/lib/sse2/libatlas.a" - ##filename = "/usr/lib/sse2/libcblas.a" -- cgit v1.2.3