]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
msg/simple/Pipe.h:remove unneeded friend decl 6924/head
authorMichal Jarzabek <stiopa@gmail.com>
Mon, 14 Dec 2015 22:37:15 +0000 (22:37 +0000)
committerMichal Jarzabek <stiopa@gmail.com>
Mon, 14 Dec 2015 22:46:39 +0000 (22:46 +0000)
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 <stiopa@gmail.com>
src/msg/simple/Pipe.h

index ce24a2a1ae75aba0e0e44c98154b8b76fc179118..d8f334f05d404a3e12bd981ff5420000a982866d 100644 (file)
@@ -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);