[Lldb-commits] [lldb] r371176 - [lldb][NFC] Remove unused Args::GetArgumentQuoteCharAtIndex

Raphael Isemann via lldb-commits lldb-commits at lists.llvm.org
Fri Sep 6 00:54:47 PDT 2019


Author: teemperor
Date: Fri Sep  6 00:54:47 2019
New Revision: 371176

URL: http://llvm.org/viewvc/llvm-project?rev=371176&view=rev
Log:
[lldb][NFC] Remove unused Args::GetArgumentQuoteCharAtIndex

Modified:
    lldb/trunk/include/lldb/Utility/Args.h
    lldb/trunk/source/Utility/Args.cpp

Modified: lldb/trunk/include/lldb/Utility/Args.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Utility/Args.h?rev=371176&r1=371175&r2=371176&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Utility/Args.h (original)
+++ lldb/trunk/include/lldb/Utility/Args.h Fri Sep  6 00:54:47 2019
@@ -121,7 +121,6 @@ public:
   const char *GetArgumentAtIndex(size_t idx) const;
 
   llvm::ArrayRef<ArgEntry> entries() const { return m_entries; }
-  char GetArgumentQuoteCharAtIndex(size_t idx) const;
 
   using const_iterator = std::vector<ArgEntry>::const_iterator;
 

Modified: lldb/trunk/source/Utility/Args.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Utility/Args.cpp?rev=371176&r1=371175&r2=371176&view=diff
==============================================================================
--- lldb/trunk/source/Utility/Args.cpp (original)
+++ lldb/trunk/source/Utility/Args.cpp Fri Sep  6 00:54:47 2019
@@ -260,12 +260,6 @@ const char *Args::GetArgumentAtIndex(siz
   return nullptr;
 }
 
-char Args::GetArgumentQuoteCharAtIndex(size_t idx) const {
-  if (idx < m_entries.size())
-    return m_entries[idx].quote;
-  return '\0';
-}
-
 char **Args::GetArgumentVector() {
   assert(!m_argv.empty());
   // TODO: functions like execve and posix_spawnp exhibit undefined behavior




More information about the lldb-commits mailing list