Revision: 6880
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6880&view=rev
Author: mdboom
Date: 2009-02-05 15:30:42 +0000 (Thu, 05 Feb 2009)
Log Message:
-----------
Remove test code.
Modified Paths:
--------------
trunk/matplotlib/src/_path.cpp
Modified: trunk/matplotlib/src/_path.cpp
===================================================================
--- trunk/matplotlib/src/_path.cpp 2009-02-05 04:47:26 UTC (rev 6879)
+++ trunk/matplotlib/src/_path.cpp 2009-02-05 15:30:42 UTC (rev 6880)
@@ -56,10 +56,6 @@
"convert_path_to_polygons(path, trans, width,
height)");
add_varargs_method("cleanup_path", &_path_module::cleanup_path,
"cleanup_path(path, trans, remove_nans, clip,
quantize, simplify, curves)");
- /* TEST CODE -- REMOVE LATER */
- add_varargs_method("cleanup_path_test",
&_path_module::cleanup_path_test,
- "TEST");
- /* **************************************** */
initialize("Helper functions for paths");
}
@@ -79,8 +75,6 @@
Py::Object path_intersects_path(const Py::Tuple& args);
Py::Object convert_path_to_polygons(const Py::Tuple& args);
Py::Object cleanup_path(const Py::Tuple& args);
- /* TEST CODE -- REMOVE LATER */
- Py::Object cleanup_path_test(const Py::Tuple& args);
};
//
@@ -1354,39 +1348,6 @@
return result;
}
-/************************************************************/
-/* TEST CODE */
-extern "C" {
- void* get_path_iterator(
- PyObject* path, PyObject* trans, int remove_nans,
int do_clip,
- double rect[4], e_quantize_mode quantize_mode, int
do_simplify);
-
- unsigned get_vertex(void* pipeline, double* x, double* y);
-
- void free_path_iterator(void* pipeline);
-}
-
-Py::Object _path_module::cleanup_path_test(const Py::Tuple& args)
-{
- args.verify_length(2);
-
- double rect[] = { 0.0, 0.0, 640.0, 480.0 };
-
- void* iterator = get_path_iterator(args[0].ptr(), args[1].ptr(), 1, 1,
rect, QUANTIZE_AUTO, 1);
-
- unsigned cmd;
- double x, y;
- while ((cmd = get_vertex(iterator, &x, &y)) != 0 /* STOP */) {
- printf("%f %f %d\n", x, y, cmd);
- }
-
- free_path_iterator(iterator);
-
- return Py::None();
-}
-/* END OF TEST CODE */
-/************************************************************/
-
extern "C"
DL_EXPORT(void)
init_path(void)
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins