diff options
Diffstat (limited to 'libcpp/line-map.c')
-rw-r--r-- | libcpp/line-map.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/libcpp/line-map.c b/libcpp/line-map.c index 141af9d..3890eff 100644 --- a/libcpp/line-map.c +++ b/libcpp/line-map.c @@ -2086,8 +2086,7 @@ rich_location::add_fixit_insert (source_location where, void rich_location::add_fixit_remove (source_range src_range) { - linemap_assert (m_num_fixit_hints < MAX_FIXIT_HINTS); - m_fixit_hints[m_num_fixit_hints++] = new fixit_remove (src_range); + add_fixit_replace (src_range, ""); } /* Add a fixit-hint, suggesting replacement of the content at @@ -2130,21 +2129,6 @@ fixit_insert::affects_line_p (const char *file, int line) return false; } -/* class fixit_remove. */ - -fixit_remove::fixit_remove (source_range src_range) -: m_src_range (src_range) -{ -} - -/* Implementation of fixit_hint::affects_line_p for fixit_remove. */ - -bool -fixit_remove::affects_line_p (const char *file, int line) -{ - return m_src_range.intersects_line_p (file, line); -} - /* class fixit_replace. */ fixit_replace::fixit_replace (source_range src_range, |