Extract Unit to top-level
authorYedidya Feldblum <yfeldblum@fb.com>
Wed, 18 May 2016 03:38:11 +0000 (20:38 -0700)
committerFacebook Github Bot 9 <facebook-github-bot-9-bot@fb.com>
Wed, 18 May 2016 03:53:39 +0000 (20:53 -0700)
commita3323738a37ad3e8cae4a70931728e82fb5aeb6f
tree5a76137e79f851c8e4bfbce4b4a04c74d4e40a66
parent6b5a25fc7852dceb54178072fecb6e31d09252fd
Extract Unit to top-level

Summary:
[Folly] Extract `Unit` to top-level.

It was in `folly/futures/`, but this diff moves it to `folly/`. It is needed for futures, but it is more general than futures and can be used separately.

Users must replace `folly/futures/Unit.h` with `folly/Unit.h`.

Also codemods existing usage sites:

```
hg grep -lw folly/futures/Unit.h | xargs perl -pi -e 's,\bfolly/futures/Unit\.h\b,folly/Unit.h,g'
```

Reviewed By: igorsugak

Differential Revision: D3314280

fbshipit-source-id: 16279b76b1d24529bec49077ccb36cd7d39f23b8
folly/Makefile.am
folly/Unit.h [new file with mode: 0644]
folly/futures/Timekeeper.h
folly/futures/Try.h
folly/futures/Unit.h [deleted file]
folly/futures/test/FutureTest.cpp
folly/futures/test/UnitTest.cpp [deleted file]
folly/test/Makefile.am
folly/test/UnitTest.cpp [new file with mode: 0644]