From: Scott Wolchok Date: Mon, 1 Feb 2016 21:17:55 +0000 (-0800) Subject: Remove unnecessary includes from Optional.h X-Git-Tag: deprecate-dynamic-initializer~112 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=0704bd04222ebd745bffa731319d88493605d932;p=folly.git Remove unnecessary includes from Optional.h Summary: I want to be able to include this in fbobjc/xplat/folly:headers_only, but it currently pulls in a boost header and Portability.h. Fortunately, neither of those includes are needed. Reviewed By: ddrcoder, yfeldblum, mhorowitz Differential Revision: D2880443 fb-gh-sync-id: 409561b8fb555ac3946d59cd6657c6c643b67c86 --- diff --git a/folly/Optional.h b/folly/Optional.h index 18320090..38f198fd 100644 --- a/folly/Optional.h +++ b/folly/Optional.h @@ -59,10 +59,6 @@ #include #include -#include - -#include - namespace folly { namespace detail { struct NoneHelper {}; } diff --git a/folly/test/OptionalTest.cpp b/folly/test/OptionalTest.cpp index bcf08476..75b9ddf2 100644 --- a/folly/test/OptionalTest.cpp +++ b/folly/test/OptionalTest.cpp @@ -15,6 +15,7 @@ */ #include +#include #include #include