Skip to content

Commit f05c9d2

Browse files
mstorsjotkrasnukha
authored andcommitted
Remove unused static functions
This fixes warnings like these: ../src/MICmnLLDBDebugSessionInfo.cpp:877:17: warning: unused function 'GetBreakOrWatchPointAddress<lldb::SBBreakpoint>' [-Wunused-function] lldb::SBAddress GetBreakOrWatchPointAddress(lldb::SBTarget &vrTarget, ^ ../src/MICmnLLDBDebugSessionInfo.cpp:884:17: warning: unused function 'GetBreakOrWatchPointAddress<lldb::SBWatchpoint>' [-Wunused-function] lldb::SBAddress GetBreakOrWatchPointAddress(lldb::SBTarget &vrTarget, ^
1 parent a05424d commit f05c9d2

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/MICmnLLDBDebugSessionInfo.cpp

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -852,23 +852,6 @@ void CMICmnLLDBDebugSessionInfo::MIResponseFormWatchpointInfo(
852852
vwrMiValueResult = CMICmnMIValueResult("wpt", miValueTuple);
853853
}
854854

855-
template <class T>
856-
static lldb::SBAddress GetBreakOrWatchPointAddress(lldb::SBTarget &vrTarget,
857-
T &vrStoppoint);
858-
859-
template <>
860-
lldb::SBAddress GetBreakOrWatchPointAddress(lldb::SBTarget &vrTarget,
861-
lldb::SBBreakpoint &vrStoppoint) {
862-
lldb::SBBreakpointLocation breakpointLoc = vrStoppoint.GetLocationAtIndex(0);
863-
return breakpointLoc.GetAddress();
864-
}
865-
866-
template <>
867-
lldb::SBAddress GetBreakOrWatchPointAddress(lldb::SBTarget &vrTarget,
868-
lldb::SBWatchpoint &vrStoppoint) {
869-
return lldb::SBAddress(vrStoppoint.GetWatchAddress(), vrTarget);
870-
}
871-
872855
//++
873856
// Details: Retrieve breakpoint information and write into the given breakpoint
874857
// information object. Note not all possible information is retrieved

0 commit comments

Comments
 (0)