From: Abegail Jakop Date: Wed, 12 Aug 2015 21:00:38 +0000 (-0400) Subject: remove unused lex_cast()-ed args X-Git-Tag: release-2.9~120 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=fa2d28cc5bc8387e68afc92f51303ca3dba84ed2;p=systemtap.git remove unused lex_cast()-ed args --- diff --git a/session.cxx b/session.cxx index 7c7975ee6..55f8e184b 100644 --- a/session.cxx +++ b/session.cxx @@ -373,7 +373,6 @@ systemtap_session::systemtap_session (const systemtap_session& other, additional_scripts = other.additional_scripts; c_macros = other.c_macros; args = other.args; - qstring_args = other.qstring_args; kbuildflags = other.kbuildflags; globalopts = other.globalopts; @@ -1496,13 +1495,8 @@ systemtap_session::check_options (int argc, char * const argv []) have_script = true; } else - { - args.push_back (string (argv[i])); - qstring_args.push_back(lex_cast_qstring(argv[i])); - } + args.push_back (string (argv[i])); } - num_args = lex_cast(args.size ()); - qstring_num_args = lex_cast_qstring(args.size()); // We don't need a script with --list-servers, --trust-servers, or any dump mode bool need_script = server_status_strings.empty () && diff --git a/session.h b/session.h index 09fd7f65e..059a7eeda 100644 --- a/session.h +++ b/session.h @@ -156,10 +156,7 @@ public: std::vector include_path; int include_arg_start; std::vector c_macros; - std::string num_args; - std::string qstring_num_args; std::vector args; - std::vector qstring_args; std::vector kbuildflags; // -B var=val std::vector globalopts; // -G var=val std::vector modinfos; // --modinfo tag=value