[Spice-commits] server/utils.hpp
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Jun 19 12:20:54 UTC 2020
server/utils.hpp | 9 ---------
1 file changed, 9 deletions(-)
New commits:
commit edebd1cc74d67c431dd213631057c613b7a07cb7
Author: Frediano Ziglio <freddy77 at gmail.com>
Date: Tue May 5 10:19:22 2020 +0100
utils: Remove shared_ptr::release
It's never used.
Signed-off-by: Frediano Ziglio <freddy77 at gmail.com>
diff --git a/server/utils.hpp b/server/utils.hpp
index eac4191a..950f4c13 100644
--- a/server/utils.hpp
+++ b/server/utils.hpp
@@ -186,15 +186,6 @@ public:
}
p = ptr;
}
- T *release()
- {
- T *ptr = p;
- if (p) {
- shared_ptr_unref(p);
- p = nullptr;
- }
- return ptr;
- }
operator bool() const
{
return p;
More information about the Spice-commits
mailing list