From 546499713651809f026e118f81b9c52f01c895f6 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Wed, 26 Aug 2009 17:35:54 -0700 Subject: Remove unnecessary static members When a static class member is only used by a single method, it's more concise to use a static local variable instead. * staptree.cxx (probe::probe): Make last_probeidx a static local. * tapset-perfmon.cxx (perfmon_derived_probe::perfmon_derived_probe): Make probes_allocated a static local. --- staptree.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'staptree.h') diff --git a/staptree.h b/staptree.h index f1d43403..de148ce0 100644 --- a/staptree.h +++ b/staptree.h @@ -660,9 +660,6 @@ struct probe virtual probe* basest () { return this; } virtual ~probe() {} bool privileged; -private: - static unsigned last_probeidx; -public: std::string name; }; -- cgit