From e45a507100a75813b1297bdd7c4f16246f4a1dcb Mon Sep 17 00:00:00 2001 From: Nadav Har'El Date: Tue, 10 Mar 2015 13:16:43 +0200 Subject: [PATCH] Remove unnecessary forward declarations from reactor.hh reactor.hh includes forward declarations for input_stream, output_stream template classes. These are unnecessary, because it #include's iostream.hh, which contains the full definition of these classes. These unnecessary forward declarations are harmless in the current code, but they will become harmful if we change the definitions in iostream.hh (e.g., I wanted to make input_stream a "final" class). Signed-off-by: Nadav Har'El --- core/reactor.hh | 6 ------ 1 file changed, 6 deletions(-) diff --git a/core/reactor.hh b/core/reactor.hh index bab76dba66..6d92bedde7 100644 --- a/core/reactor.hh +++ b/core/reactor.hh @@ -74,12 +74,6 @@ class pollable_fd; class pollable_fd_state; class lowres_clock; -template -class input_stream; - -template -class output_stream; - struct free_deleter { void operator()(void* p) { ::free(p); } };