Skip to content

Commit 8379556

Browse files
author
Davide Italiano
committed
[Host] Remove ComputeSupportFileDirectory, it's unused and only downstream.
apple-llvm-split-commit: 0494e90f6afec5a1085a4141922ce189eb2be939 apple-llvm-split-dir: lldb/
1 parent 9d420d8 commit 8379556

File tree

4 files changed

+0
-19
lines changed

4 files changed

+0
-19
lines changed

lldb/include/lldb/Host/macosx/HostInfoMacOSX.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ class HostInfoMacOSX : public HostInfoPosix {
3434

3535
protected:
3636
static bool ComputeSupportExeDirectory(FileSpec &file_spec);
37-
static bool ComputeSupportFileDirectory(FileSpec &file_spec);
3837
static void ComputeHostArchitectureSupport(ArchSpec &arch_32,
3938
ArchSpec &arch_64);
4039
static bool ComputeHeaderDirectory(FileSpec &file_spec);

lldb/include/lldb/Host/posix/HostInfoPosix.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ class HostInfoPosix : public HostInfoBase {
3434

3535
protected:
3636
static bool ComputeSupportExeDirectory(FileSpec &file_spec);
37-
static bool ComputeSupportFileDirectory(FileSpec &file_spec);
3837
static bool ComputeHeaderDirectory(FileSpec &file_spec);
3938
};
4039
}

lldb/source/Host/macosx/objcxx/HostInfoMacOSX.mm

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,6 @@ static void ParseOSVersion(llvm::VersionTuple &version, NSString *Key) {
173173
return (bool)file_spec.GetDirectory();
174174
}
175175

176-
bool HostInfoMacOSX::ComputeSupportFileDirectory(FileSpec &file_spec) {
177-
// The bundle's Resources directory, just like for executables
178-
return HostInfoMacOSX::ComputeSupportExeDirectory(file_spec);
179-
}
180-
181176
bool HostInfoMacOSX::ComputeHeaderDirectory(FileSpec &file_spec) {
182177
FileSpec lldb_file_spec = GetShlibDir();
183178
if (!lldb_file_spec)

lldb/source/Host/posix/HostInfoPosix.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -120,18 +120,6 @@ uint32_t HostInfoPosix::GetEffectiveGroupID() { return getegid(); }
120120

121121
FileSpec HostInfoPosix::GetDefaultShell() { return FileSpec("/bin/sh"); }
122122

123-
bool HostInfoPosix::ComputeSupportFileDirectory(FileSpec &file_spec) {
124-
FileSpec temp_file_spec;
125-
126-
if (FileSpec temp_file_spec = GetShlibDir()) {
127-
temp_file_spec.AppendPathComponent("lldb");
128-
file_spec = temp_file_spec;
129-
return true;
130-
}
131-
132-
return false;
133-
}
134-
135123
bool HostInfoPosix::ComputeSupportExeDirectory(FileSpec &file_spec) {
136124
return ComputePathRelativeToLibrary(file_spec, "/bin");
137125
}

0 commit comments

Comments
 (0)