diff options
author | Ed Tanous <ed@tanous.net> | 2024-05-07 01:59:58 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2024-05-11 02:59:57 +0300 |
commit | a1015048b6a60c06f9634c5756feaff8f12d5266 (patch) | |
tree | 2ee45aa33d00d73e3c8c516b4bc235fa31faa218 /include | |
parent | 83328316857b42960edd46cadf06902d2d4ba00b (diff) | |
download | bmcweb-a1015048b6a60c06f9634c5756feaff8f12d5266.tar.xz |
Remove reserve
This is flagging static analysis issues, because we don't reserve a
quadraticly sized increment. This is a micro optimization that never
made much sense.
Tested: Old code. Inspection only.
Change-Id: I442628751558616c24123dba66aab448a4c24039
Signed-off-by: Ed Tanous <ed@tanous.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/dbus_monitor.hpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/include/dbus_monitor.hpp b/include/dbus_monitor.hpp index 25f0c7f772..db75fce823 100644 --- a/include/dbus_monitor.hpp +++ b/include/dbus_monitor.hpp @@ -164,11 +164,6 @@ inline void requestRoutes(App& app) { interfaceCount = 1; } - // Reserve our matches upfront. For each path there is 1 for - // interfacesAdded, and InterfaceCount number for - // PropertiesChanged - thisSession.matches.reserve(thisSession.matches.size() + - paths->size() * (1U + interfaceCount)); // These regexes derived on the rules here: // https://dbus.freedesktop.org/doc/dbus-specification.html#message-protocol-names |