Skip to content

Commit 061ef29

Browse files
committed
Remove unused DXBC::IDebugInfo::HasSourceMapping()
Never called from anywhere, not implemented for DXIL
1 parent c3c1afb commit 061ef29

File tree

7 files changed

+0
-20
lines changed

7 files changed

+0
-20
lines changed

renderdoc/driver/shaders/dxbc/dxbc_common.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,6 @@ class IDebugInfo
516516
virtual void GetCallstack(size_t instruction, uintptr_t offset,
517517
rdcarray<rdcstr> &callstack) const = 0;
518518

519-
virtual bool HasSourceMapping() const = 0;
520519
virtual void GetLocals(const DXBC::DXBCContainer *dxbc, size_t instruction, uintptr_t offset,
521520
rdcarray<SourceVariableMapping> &locals) const = 0;
522521

renderdoc/driver/shaders/dxbc/dxbc_sdbg.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,6 @@ void SDBGChunk::GetCallstack(size_t instruction, uintptr_t offset, rdcarray<rdcs
123123
}
124124
}
125125

126-
bool SDBGChunk::HasSourceMapping() const
127-
{
128-
return false;
129-
}
130-
131126
void SDBGChunk::GetLocals(const DXBC::DXBCContainer *dxbc, size_t instruction, uintptr_t offset,
132127
rdcarray<SourceVariableMapping> &locals) const
133128
{

renderdoc/driver/shaders/dxbc/dxbc_sdbg.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,6 @@ class SDBGChunk : public IDebugInfo
249249
void GetLineInfo(size_t instruction, uintptr_t offset, LineColumnInfo &lineInfo) const;
250250
void GetCallstack(size_t instruction, uintptr_t offset, rdcarray<rdcstr> &callstack) const;
251251

252-
bool HasSourceMapping() const;
253252
void GetLocals(const DXBC::DXBCContainer *dxbc, size_t instruction, uintptr_t offset,
254253
rdcarray<SourceVariableMapping> &locals) const;
255254

renderdoc/driver/shaders/dxbc/dxbc_spdb.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2329,11 +2329,6 @@ void SPDBChunk::GetCallstack(size_t, uintptr_t offset, rdcarray<rdcstr> &callsta
23292329
callstack = it->second.callstack;
23302330
}
23312331

2332-
bool SPDBChunk::HasSourceMapping() const
2333-
{
2334-
return true;
2335-
}
2336-
23372332
void SPDBChunk::GetLocals(const DXBC::DXBCContainer *dxbc, size_t, uintptr_t offset,
23382333
rdcarray<SourceVariableMapping> &locals) const
23392334
{

renderdoc/driver/shaders/dxbc/dxbc_spdb.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,6 @@ class SPDBChunk : public IDebugInfo
305305
void GetLineInfo(size_t instruction, uintptr_t offset, LineColumnInfo &lineInfo) const;
306306
void GetCallstack(size_t instruction, uintptr_t offset, rdcarray<rdcstr> &callstack) const;
307307

308-
bool HasSourceMapping() const;
309308
void GetLocals(const DXBC::DXBCContainer *dxbc, size_t instruction, uintptr_t offset,
310309
rdcarray<SourceVariableMapping> &locals) const;
311310

renderdoc/driver/shaders/dxil/dxil_bytecode.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1675,7 +1675,6 @@ class Program : public DXBC::IDebugInfo
16751675
void GetLineInfo(size_t instruction, uintptr_t offset, LineColumnInfo &lineInfo) const override;
16761676
void GetCallstack(size_t instruction, uintptr_t offset, rdcarray<rdcstr> &callstack) const override;
16771677

1678-
bool HasSourceMapping() const override;
16791678
void GetLocals(const DXBC::DXBCContainer *dxbc, size_t instruction, uintptr_t offset,
16801679
rdcarray<SourceVariableMapping> &locals) const override;
16811680
// IDebugInfo interface

renderdoc/driver/shaders/dxil/dxil_reflect.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2111,12 +2111,6 @@ void Program::GetCallstack(size_t instruction, uintptr_t offset, rdcarray<rdcstr
21112111
callstack.clear();
21122112
}
21132113

2114-
bool Program::HasSourceMapping() const
2115-
{
2116-
// not yet implemented and only relevant for debugging
2117-
return false;
2118-
}
2119-
21202114
void Program::GetLocals(const DXBC::DXBCContainer *dxbc, size_t instruction, uintptr_t offset,
21212115
rdcarray<SourceVariableMapping> &locals) const
21222116
{

0 commit comments

Comments
 (0)