Drop unused member from cpp_string_location_reader (PR preprocessor/92982)
authorDavid Malcolm <dmalcolm@redhat.com>
Wed, 18 Dec 2019 17:26:01 +0000 (17:26 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Wed, 18 Dec 2019 17:26:01 +0000 (17:26 +0000)
libcpp/ChangeLog:
PR preprocessor/92982
* charset.c
(cpp_string_location_reader::cpp_string_location_reader): Delete
initialization of m_line_table.
* include/cpplib.h (cpp_string_location_reader::m_line_table):
Delete unused member.

From-SVN: r279541

libcpp/ChangeLog
libcpp/charset.c
libcpp/include/cpplib.h

index 69b1c0c4940374119f3feeb95cef202ac1f3af3d..a11da283522a604c54f504d216b5fa8d11c69e54 100644 (file)
@@ -1,3 +1,12 @@
+2019-12-18  David Malcolm  <dmalcolm@redhat.com>
+
+       PR preprocessor/92982
+       * charset.c
+       (cpp_string_location_reader::cpp_string_location_reader): Delete
+       initialization of m_line_table.
+       * include/cpplib.h (cpp_string_location_reader::m_line_table):
+       Delete unused member.
+
 2019-12-14  Jakub Jelinek  <jakub@redhat.com>
 
        PR preprocessor/92919
index a638a1b98fa0bf75a2b765ba18ca28d8e6dae76d..5da39a643d7efffa4487f6bcd5be3aed837fcaf1 100644 (file)
@@ -2248,7 +2248,6 @@ _cpp_default_encoding (void)
 cpp_string_location_reader::
 cpp_string_location_reader (location_t src_loc,
                            line_maps *line_table)
-: m_line_table (line_table)
 {
   src_loc = get_range_from_loc (line_table, src_loc).m_start;
 
index e199aecfa480c6b51b6d6a7f5277c6907436d48f..1349871dc381fc303f160c4cbd96c9a27c643786 100644 (file)
@@ -912,7 +912,6 @@ class cpp_string_location_reader {
  private:
   location_t m_loc;
   int m_offset_per_column;
-  line_maps *m_line_table;
 };
 
 /* A class for storing the source ranges of all of the characters within