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 69b1c0c..a11da28 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 a638a1b..5da39a6 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 e199aec..1349871 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