lmi-commits
[Top][All Lists]
Advanced

[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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]