Simplify Unit
authorYedidya Feldblum <yfeldblum@fb.com>
Tue, 17 May 2016 22:27:43 +0000 (15:27 -0700)
committerFacebook Github Bot 8 <facebook-github-bot-8-bot@fb.com>
Tue, 17 May 2016 22:38:24 +0000 (15:38 -0700)
commite38ff539d4559d94c35e5f7a84f520d294566acc
tree95743906f52ba5347cb15a4b6b598094b20914a4
parent1072a897f5c17f2d13de16450059baa81c61d525
Simplify Unit

Summary:
[Folly] Simplify `Unit`.

Specifically:
* Make `Unit::Lift` and `Unit::Drop` simply be aliases to `std::conditional<...>`. No need for anything more complicated.
* Remove `is_void_or_unit`, which is unused and unnecessary.

Reviewed By: djwatson

Differential Revision: D3312481

fbshipit-source-id: 280d40aa8ef91c52f96a51b03e0a109d76c939ec
folly/futures/Unit.h
folly/futures/test/UnitTest.cpp