From bceccba6eb717d2be90c5176d9acff61151f0b73 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 27 Aug 2011 10:38:48 -0400 Subject: [PATCH] Code Cleanup - The str_replace is no longer needed. --- src/Att.cpp | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/Att.cpp b/src/Att.cpp index 0c471cfed..73ff24323 100644 --- a/src/Att.cpp +++ b/src/Att.cpp @@ -92,22 +92,6 @@ static const char* modifierNames[] = #define NUM_MODIFIABLE_NAMES (sizeof (modifiableNames) / sizeof (modifiableNames[0])) #define NUM_MODIFIER_NAMES (sizeof (modifierNames) / sizeof (modifierNames[0])) -//////////////////////////////////////////////////////////////////////////////// -static inline std::string& str_replace ( - std::string &str, - const std::string& search, - const std::string& replacement) -{ - std::string::size_type pos = 0; - while ((pos = str.find (search, pos)) != std::string::npos) - { - str.replace (pos, search.length (), replacement); - pos += replacement.length (); - } - - return str; -} - //////////////////////////////////////////////////////////////////////////////// Att::Att () : _name ("")