Skip to content

Commit fef268a

Browse files
yfeldblumfacebook-github-bot
authored andcommitted
Limit StaticSingletonManager check functions
Summary: [Folly] Limit `StaticSingletonManager` check functions to `StaticSingletonManager` calls. Reviewed By: Alfus Differential Revision: D23544598 fbshipit-source-id: 081d324064025d5fc86bb20b9b685c2591f01642
1 parent 25878e4 commit fef268a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

folly/detail/test/StaticSingletonManagerTest.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,10 @@ extern "C" FOLLY_KEEP int* check() {
4141
}
4242

4343
extern "C" FOLLY_KEEP void* check_throw() {
44-
MayThrow<false> obj;
4544
return &createGlobal<MayThrow<false>, void>();
4645
}
4746

4847
extern "C" FOLLY_KEEP void* check_nothrow() {
49-
MayThrow<false> obj;
5048
return &createGlobal<MayThrow<true>, void>();
5149
}
5250

0 commit comments

Comments
 (0)