From: Michal Jarzabek Date: Mon, 14 Dec 2015 22:37:15 +0000 (+0000) Subject: msg/simple/Pipe.h:remove unneeded friend decl X-Git-Tag: v10.0.3~214^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F6924%2Fhead;p=ceph.git 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 --- 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);