From: Lukas Berk Date: Fri, 1 Nov 2013 19:27:46 +0000 (-0400) Subject: Removed unused code in tapset-method.cxx X-Git-Tag: release-2.4~16 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=44d3b76a55045b414c511964a611cca4f4ef1e7b;p=systemtap.git Removed unused code in tapset-method.cxx *tapset-method.cxx - remove the unused bmoption_escape function --- diff --git a/tapset-method.cxx b/tapset-method.cxx index d2f739fc4..fb609f334 100644 --- a/tapset-method.cxx +++ b/tapset-method.cxx @@ -40,17 +40,6 @@ static const string TOK_BEGIN ("begin"); static const string TOK_END ("end"); static const string TOK_ERROR ("error"); -/* Escape all double quotes with a backslash in the string s: */ -string bmoption_escape (string s) { - size_t n = 0; - for (;;) { - n = s.find('"', n); - if (n == string::npos) break; - s.insert(n, 1, '\\'); n++; - } - return s; -} - // -------------------------------------------------------------------------- struct java_builder: public derived_probe_builder