[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master ba745a4 3/6: Remove unused starts_with() func
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master ba745a4 3/6: Remove unused starts_with() function from PDF generation code |
Date: |
Fri, 3 Apr 2020 18:51:38 -0400 (EDT) |
branch: master
commit ba745a43cd704b5b949bbcdca11dff06e4a52bb8
Author: Vadim Zeitlin <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Remove unused starts_with() function from PDF generation code
This function is not used any longer after the changes of the commit
12f58cdd3 (Simplify single-premium conditionals, 2019-08-26) and
resulted in -Wunused-function from clang.
---
pdf_command_wx.cpp | 8 --------
1 file changed, 8 deletions(-)
diff --git a/pdf_command_wx.cpp b/pdf_command_wx.cpp
index 29b37b1..d800253 100644
--- a/pdf_command_wx.cpp
+++ b/pdf_command_wx.cpp
@@ -69,14 +69,6 @@ LMI_FORCE_LINKING_IN_SITU(pdf_command_wx)
namespace
{
-// This function is also provided in <boost/algorithm/string/predicate.hpp>,
-// but it's arguably not worth adding dependency on this Boost library just for
-// this function.
-inline
-bool starts_with(std::string const& s, char const* prefix)
-{
- return s.compare(0, std::strlen(prefix), prefix) == 0;
-}
// Helper enums identifying the possible {Guaranteed,Current}{Zero,}
// combinations.
- [lmi-commits] [lmi] master updated (722704f -> c99481b), Greg Chicares, 2020/04/03
- [lmi-commits] [lmi] master 87aad3c 1/6: Fix bourn_cast test compilation with clang, Greg Chicares, 2020/04/03
- [lmi-commits] [lmi] master fe2e852 2/6: Assume that all integer types use two's complement representation, Greg Chicares, 2020/04/03
- [lmi-commits] [lmi] master cc1abb5 4/6: Add missing stream headers, Greg Chicares, 2020/04/03
- [lmi-commits] [lmi] master c99481b 6/6: Stop using std::bind{1st, 2nd}() removed from C++17, Greg Chicares, 2020/04/03
- [lmi-commits] [lmi] master ba745a4 3/6: Remove unused starts_with() function from PDF generation code,
Greg Chicares <=
- [lmi-commits] [lmi] master a88f402 5/6: Disable clang -Wdeprecated-copy warning in regex_iterator, Greg Chicares, 2020/04/03