Skip to content

Commit 45657e8

Browse files
Remove unused FileSPec::IsResolved() functionality. (#75840)
This API seems to be completely unused. Should we just remove it?
1 parent 49efb08 commit 45657e8

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

lldb/include/lldb/Utility/FileSpec.h

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -386,21 +386,6 @@ class FileSpec {
386386
/// The triple which is used to set the Path style.
387387
void SetFile(llvm::StringRef path, const llvm::Triple &triple);
388388

389-
bool IsResolved() const { return m_is_resolved; }
390-
391-
/// Set if the file path has been resolved or not.
392-
///
393-
/// If you know a file path is already resolved and avoided passing a \b
394-
/// true parameter for any functions that take a "bool resolve_path"
395-
/// parameter, you can set the value manually using this call to make sure
396-
/// we don't try and resolve it later, or try and resolve a path that has
397-
/// already been resolved.
398-
///
399-
/// \param[in] is_resolved
400-
/// A boolean value that will replace the current value that
401-
/// indicates if the paths in this object have been resolved.
402-
void SetIsResolved(bool is_resolved) { m_is_resolved = is_resolved; }
403-
404389
FileSpec CopyByAppendingPathComponent(llvm::StringRef component) const;
405390
FileSpec CopyByRemovingLastPathComponent() const;
406391

@@ -440,7 +425,6 @@ class FileSpec {
440425
/// state in this object.
441426
void PathWasModified() {
442427
m_checksum = Checksum();
443-
m_is_resolved = false;
444428
m_absolute = Absolute::Calculate;
445429
}
446430

@@ -459,9 +443,6 @@ class FileSpec {
459443
/// The optional MD5 checksum of the file.
460444
Checksum m_checksum;
461445

462-
/// True if this path has been resolved.
463-
mutable bool m_is_resolved = false;
464-
465446
/// Cache whether this path is absolute.
466447
mutable Absolute m_absolute = Absolute::Calculate;
467448

lldb/source/Host/common/FileSystem.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,6 @@ void FileSystem::Resolve(FileSpec &file_spec) {
259259
file_spec.SetDirectory(path);
260260
else
261261
file_spec.SetPath(path);
262-
file_spec.SetIsResolved(true);
263262
}
264263

265264
template <typename T>

0 commit comments

Comments
 (0)