From 0d6c5bb4e27f393df8a32b7b233626b13dec0d20 Mon Sep 17 00:00:00 2001 From: Ronald Garcia Date: Thu, 9 Mar 2006 16:18:05 +0000 Subject: [PATCH] Removed unused function warning. [SVN r33285] --- src/graphviz_digraph_parser.cpp | 5 ++--- src/graphviz_graph_parser.cpp | 3 ++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/graphviz_digraph_parser.cpp b/src/graphviz_digraph_parser.cpp index 88a443ea..2690614a 100644 --- a/src/graphviz_digraph_parser.cpp +++ b/src/graphviz_digraph_parser.cpp @@ -95,12 +95,13 @@ using std::malloc; typedef std::map::iterator It; typedef std::map::iterator Iter; +#if 0 // RG - defined but unused warning static const std::string& get_graph_name(const Subgraph& g) { const boost::graph_property::type& name = boost::get_property(g, boost::graph_name); return name; } - +#endif static std::pair lookup(const std::string& name) { //lookup in the top level Iter it = nodes.find(name); @@ -1412,12 +1413,10 @@ namespace boost { void read_graphviz(const std::string& filename, GRAPHVIZ_GRAPH& g) { FILE* file = fopen(filename.c_str(), "r"); yyrestart(file); - void* in = static_cast(file); yyparse(static_cast(&g)); } void read_graphviz(FILE* file, GRAPHVIZ_GRAPH& g) { - void* in = static_cast(file); yyrestart(file); yyparse(static_cast(&g)); } diff --git a/src/graphviz_graph_parser.cpp b/src/graphviz_graph_parser.cpp index 92dd8807..0f69e302 100644 --- a/src/graphviz_graph_parser.cpp +++ b/src/graphviz_graph_parser.cpp @@ -95,12 +95,13 @@ using std::malloc; typedef std::map::iterator It; typedef std::map::iterator Iter; +#if 0 // RG - defined but unused warning static const std::string& get_graph_name(const Subgraph& g) { const boost::graph_property::type& name = boost::get_property(g, boost::graph_name); return name; } - +#endif static std::pair lookup(const std::string& name) { //lookup in the top level Iter it = nodes.find(name);