diff -r 409a31271efd -r 01d41844ef46 gui/graph_displayer_canvas-event.cc --- a/gui/graph_displayer_canvas-event.cc Thu Jan 05 12:30:09 2006 +0000 +++ b/gui/graph_displayer_canvas-event.cc Thu Jan 05 16:54:34 2006 +0000 @@ -850,49 +850,4 @@ std::cerr << "ERROR!!!! Invalid edge found!" << std::endl; } } - } - -int GraphDisplayerCanvas::addNewEdgeMap(double default_value, std::string mapname) -{ - //create the new map - Graph::EdgeMap * emptr=new Graph::EdgeMap ((mytab.mapstorage).graph, default_value); - - //if addition was not successful addEdgeMap returns one. - //cause can be that there is already a map named like the new one - if((mytab.mapstorage).addEdgeMap(mapname,emptr, default_value)) - { - return 1; - } - - - //add it to the list of the displayable maps - mytab.registerNewEdgeMap(mapname); - - //display it - changeEdgeText(mapname); - - return 0; -} - -int GraphDisplayerCanvas::addNewNodeMap(double default_value, std::string mapname) -{ - //create the new map - Graph::NodeMap * emptr=new Graph::NodeMap ((mytab.mapstorage).graph,default_value); - - //if addition was not successful addNodeMap returns one. - //cause can be that there is already a map named like the new one - if((mytab.mapstorage).addNodeMap(mapname,emptr, default_value)) - { - return 1; - } - - //add it to the list of the displayable maps - mytab.registerNewNodeMap(mapname); - - //display it - changeNodeText(mapname); - - return 0; -} -