[PDB] Remove dead code and run clang format; NFC
llvm-svn: 329712
diff --git a/llvm/lib/DebugInfo/PDB/DIA/DIASectionContrib.cpp b/llvm/lib/DebugInfo/PDB/DIA/DIASectionContrib.cpp
index 6f395a9..b7dc49f 100644
--- a/llvm/lib/DebugInfo/PDB/DIA/DIASectionContrib.cpp
+++ b/llvm/lib/DebugInfo/PDB/DIA/DIASectionContrib.cpp
@@ -7,8 +7,8 @@
//
//===----------------------------------------------------------------------===//
-#include "llvm/DebugInfo/PDB/DIA/DIARawSymbol.h"
#include "llvm/DebugInfo/PDB/DIA/DIASectionContrib.h"
+#include "llvm/DebugInfo/PDB/DIA/DIARawSymbol.h"
#include "llvm/DebugInfo/PDB/DIA/DIASession.h"
#include "llvm/DebugInfo/PDB/PDBSymbolCompiland.h"
@@ -29,9 +29,9 @@
}
template <typename ArgType>
-ArgType PrivateGetDIAValue(
- IDiaSectionContrib *Section,
- HRESULT(__stdcall IDiaSectionContrib::*Method)(ArgType *)) {
+ArgType
+PrivateGetDIAValue(IDiaSectionContrib *Section,
+ HRESULT (__stdcall IDiaSectionContrib::*Method)(ArgType *)) {
ArgType Value;
if (S_OK == (Section->*Method)(&Value))
return static_cast<ArgType>(Value);
@@ -39,17 +39,6 @@
return ArgType();
}
-template <typename ArgType, typename RetType>
-RetType PrivateGetDIAValue(
- IDiaSectionContrib *Section,
- HRESULT(__stdcall IDiaSectionContrib::*Method)(ArgType *)) {
- ArgType Value;
- if (S_OK == (Section->*Method)(&Value))
- return static_cast<RetType>(Value);
-
- return RetType();
-}
-
uint32_t DIASectionContrib::getAddressSection() const {
return PrivateGetDIAValue(Section, &IDiaSectionContrib::get_addressSection);
}
@@ -66,6 +55,7 @@
return PrivateGetDIAValue(Section,
&IDiaSectionContrib::get_relativeVirtualAddress);
}
+
uint32_t DIASectionContrib::getLength() const {
return PrivateGetDIAValue(Section, &IDiaSectionContrib::get_length);
}
@@ -87,7 +77,8 @@
}
bool DIASectionContrib::hasUninitializedData() const {
- return PrivateGetDIAValue(Section, &IDiaSectionContrib::get_uninitializedData);
+ return PrivateGetDIAValue(Section,
+ &IDiaSectionContrib::get_uninitializedData);
}
bool DIASectionContrib::isRemoved() const {