[Lldb-commits] [lldb] r318576 - [Core] Garbage collect dead code untouched in years. NFCI.

Davide Italiano via lldb-commits lldb-commits at lists.llvm.org
Fri Nov 17 16:34:09 PST 2017


Author: davide
Date: Fri Nov 17 16:34:09 2017
New Revision: 318576

URL: http://llvm.org/viewvc/llvm-project?rev=318576&view=rev
Log:
[Core] Garbage collect dead code untouched in years. NFCI.

This sketching can be resurrected if anybody needs it, although
I doubt is relevant these days.

Modified:
    lldb/trunk/source/Core/FileSpecList.cpp

Modified: lldb/trunk/source/Core/FileSpecList.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/FileSpecList.cpp?rev=318576&r1=318575&r2=318576&view=diff
==============================================================================
--- lldb/trunk/source/Core/FileSpecList.cpp (original)
+++ lldb/trunk/source/Core/FileSpecList.cpp Fri Nov 17 16:34:09 2017
@@ -147,36 +147,5 @@ size_t FileSpecList::GetSize() const { r
 size_t FileSpecList::GetFilesMatchingPartialPath(const char *path,
                                                  bool dir_okay,
                                                  FileSpecList &matches) {
-#if 0 // FIXME: Just sketching...
-    matches.Clear();
-    using namespace llvm::sys::fs;
-    file_status stats;
-    if (status(path, stats, false))
-      return 0;
-    if (exists(stats)) {
-      if (is_symlink_file(stats)) {
-        // Shouldn't there be a method that realpath's a file?
-      }
-      if (is_regular_file(stats) || (is_directory(stats) && dir_okay)) {
-        matches.Append(FileSpec(path));
-        return 1;
-      } else if (is_directory(stats)) {
-        // Fill the match list with all the files in the directory:
-      } else {
-        return 0;
-      }
-    } else {
-        ConstString dir_name = path_spec.GetDirectory();
-        ConstString file_name = GetFilename();
-        if (dir_name == nullptr)
-        {
-            // Match files in the CWD.
-        }
-        else
-        {
-            // Match files in the given directory:
-        }
-    }
-#endif
   return 0;
 }




More information about the lldb-commits mailing list