From d7b09c8fce5f79f00ce3baacbbb8b0430d4a20c0 Mon Sep 17 00:00:00 2001 From: "Daniel R. Carvalho" Date: Fri, 25 Dec 2020 22:52:19 -0300 Subject: [PATCH] base: Remove Flags assignment Currently unused and broken. Since these are templated classes, and _flags is private, the assignment is a compilation error. Furthermore, assignment of flags of different types is likely undefined behavior. Change-Id: I8430045c42c003efc74e343cc5b4a4350bc2ad92 Signed-off-by: Daniel R. Carvalho Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/38713 Reviewed-by: Jason Lowe-Power Reviewed-by: Andreas Sandberg Reviewed-by: Bobby R. Bruce Maintainer: Jason Lowe-Power Tested-by: kokoro --- src/base/flags.hh | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/base/flags.hh b/src/base/flags.hh index 505a1e54f..8cefd2d33 100644 --- a/src/base/flags.hh +++ b/src/base/flags.hh @@ -55,17 +55,6 @@ class Flags */ operator const Type() const { return _flags; } - /** - * @ingroup api_flags - */ - template - const Flags & - operator=(const Flags &flags) - { - _flags = flags._flags; - return *this; - } - /** * @ingroup api_flags */ -- 2.30.2