From 42b23869de1229204d13cc9639744cf1185414c6 Mon Sep 17 00:00:00 2001 From: Michal Jarzabek Date: Mon, 14 Dec 2015 22:37:15 +0000 Subject: [PATCH] msg/simple/Pipe.h:remove unneeded friend decl Removed unneeded friend declarations. Nested class already has access to all the names(private, protected) to which enclosing class has access(as of C++11). Signed-off-by: Michal Jarzabek --- src/msg/simple/Pipe.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/msg/simple/Pipe.h b/src/msg/simple/Pipe.h index ce24a2a1ae7..d8f334f05d4 100644 --- a/src/msg/simple/Pipe.h +++ b/src/msg/simple/Pipe.h @@ -49,7 +49,6 @@ class DispatchQueue; Reader(Pipe *p) : pipe(p) {} void *entry() { pipe->reader(); return 0; } } reader_thread; - friend class Reader; /** * The Writer thread handles all writes to the socket (after startup). @@ -61,7 +60,6 @@ class DispatchQueue; Writer(Pipe *p) : pipe(p) {} void *entry() { pipe->writer(); return 0; } } writer_thread; - friend class Writer; /** * The DelayedDelivery is for injecting delays into Message delivery off @@ -126,7 +124,6 @@ class DispatchQueue; */ void stop_fast_dispatching(); } *delay_thread; - friend class DelayedDelivery; public: Pipe(SimpleMessenger *r, int st, PipeConnection *con); -- 2.47.3