Remove unused variable m_header as it hasn't been used since it was
authorEric Christopher <echristo@gmail.com>
Thu, 12 Jul 2018 03:52:45 +0000 (03:52 +0000)
committerEric Christopher <echristo@gmail.com>
Thu, 12 Jul 2018 03:52:45 +0000 (03:52 +0000)
added in 2016.

llvm-svn: 336884

lldb/source/Plugins/Process/minidump/MinidumpParser.cpp
lldb/source/Plugins/Process/minidump/MinidumpParser.h

index 6f43e6a..4efd6ea 100644 (file)
@@ -60,14 +60,13 @@ MinidumpParser::Create(const lldb::DataBufferSP &data_buf_sp) {
         directory->location;
   }
 
-  return MinidumpParser(data_buf_sp, header, std::move(directory_map));
+  return MinidumpParser(data_buf_sp, std::move(directory_map));
 }
 
 MinidumpParser::MinidumpParser(
-    const lldb::DataBufferSP &data_buf_sp, const MinidumpHeader *header,
+    const lldb::DataBufferSP &data_buf_sp,
     llvm::DenseMap<uint32_t, MinidumpLocationDescriptor> &&directory_map)
-    : m_data_sp(data_buf_sp), m_header(header), m_directory_map(directory_map) {
-}
+    : m_data_sp(data_buf_sp), m_directory_map(directory_map) {}
 
 llvm::ArrayRef<uint8_t> MinidumpParser::GetData() {
   return llvm::ArrayRef<uint8_t>(m_data_sp->GetBytes(),
index 1814e9a..b1974b3 100644 (file)
@@ -91,11 +91,10 @@ public:
 
 private:
   lldb::DataBufferSP m_data_sp;
-  const MinidumpHeader *m_header;
   llvm::DenseMap<uint32_t, MinidumpLocationDescriptor> m_directory_map;
 
   MinidumpParser(
-      const lldb::DataBufferSP &data_buf_sp, const MinidumpHeader *header,
+      const lldb::DataBufferSP &data_buf_sp,
       llvm::DenseMap<uint32_t, MinidumpLocationDescriptor> &&directory_map);
 };