]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
diagnostics: remove redundant field
authorDavid Malcolm <dmalcolm@redhat.com>
Wed, 16 Jul 2025 22:41:26 +0000 (18:41 -0400)
committerDavid Malcolm <dmalcolm@redhat.com>
Wed, 16 Jul 2025 22:41:26 +0000 (18:41 -0400)
I stopped using state_diagram::m_show_tags in r16-2211-ga5d9debedd2f46
but forgot to remove the field.  Do so now.

Spotted by Filip Kastl via clang's -Wunused-private-field.

gcc/ChangeLog:
* diagnostic-state-to-dot.cc (state_diagram::m_show_tags): Drop
unused field.

Signed-off-by: David Malcolm <dmalcolm@redhat.com>
gcc/diagnostic-state-to-dot.cc

index 8195c1148fe06c2db052fe6ad0b71e360cae7a8b..90ceaee756e3ae83133e3266c2ad8de73c7a2d92 100644 (file)
@@ -78,9 +78,7 @@ class state_diagram : public dot::graph
 public:
   state_diagram (const diagnostics::digraphs::digraph &input_state_graph,
                 const logical_location_manager &logical_loc_mgr)
-  : m_logical_loc_mgr (logical_loc_mgr),
-    // m_next_id (0),
-    m_show_tags (false)
+  : m_logical_loc_mgr (logical_loc_mgr)
   {
     // "node [shape=plaintext]\n"
     {
@@ -541,8 +539,6 @@ private:
 
   std::map<diagnostics::digraphs::node *, dot::node_id> m_src_node_to_port_id;
   std::map<diagnostics::digraphs::node *, dot::node_id> m_dst_node_to_port_id;
-
-  bool m_show_tags;
 };
 
 std::unique_ptr<dot::graph>