Index: runtime/vm/profiler_test.cc |
diff --git a/runtime/vm/profiler_test.cc b/runtime/vm/profiler_test.cc |
index 1ecac9f80aa198055a45aa1191a2cfae17c21fbb..cd1d456037cbf3aac78dbc9fe78d5602d234438c 100644 |
--- a/runtime/vm/profiler_test.cc |
+++ b/runtime/vm/profiler_test.cc |
@@ -21,24 +21,6 @@ DECLARE_FLAG(int, max_profile_depth); |
DECLARE_FLAG(bool, enable_inlining_annotations); |
DECLARE_FLAG(int, optimization_counter_threshold); |
-template<typename T> |
-class SetFlagScope : public ValueObject { |
- public: |
- SetFlagScope(T* flag, T value) |
- : flag_(flag), |
- original_value_(*flag) { |
- *flag_ = value; |
- } |
- |
- ~SetFlagScope() { |
- *flag_ = original_value_; |
- } |
- |
- private: |
- T* flag_; |
- T original_value_; |
-}; |
- |
// Some tests are written assuming native stack trace profiling is disabled. |
class DisableNativeProfileScope : public ValueObject { |
public: |