Minor cosmetics.
[universe.git] / universe.cc
index 55e1a6d..4a2e4f9 100644 (file)
@@ -16,11 +16,11 @@ Universe::Universe(int nb_max_polygons,
 }
 
 Universe::~Universe() {
-  for(int n = 0; n < _nb_polygons; n++) if(_polygons[n]) delete _polygons[n];
+  clear();
   delete[] _polygons;
 }
 
-void Universe::initialize(Polygon *p) {
+void Universe::initialize_polygon(Polygon *p) {
   p->initialize(_nb_max_polygons);
 }
 
@@ -118,6 +118,7 @@ Polygon *Universe::pick_polygon(scalar_t x, scalar_t y) {
   return 0;
 }
 
+#ifdef XFIG_SUPPORT
 void Universe::print_xfig(XFigTracer *tracer) {
   for(int n = 0; n < _nb_polygons; n++) {
     if(_polygons[n]) {
@@ -130,6 +131,7 @@ void Universe::print_xfig(XFigTracer *tracer) {
     }
   }
 }
+#endif
 
 #ifdef X11_SUPPORT
 void Universe::draw(SimpleWindow *window) {