Skip to content

Commit

Permalink
Bug 1276351 - remove unused mozilla::tuple. r=sergesanspaille
Browse files Browse the repository at this point in the history
  • Loading branch information
abpostelnicu committed Mar 27, 2023
1 parent 4efa1bd commit 02db5a8
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 923 deletions.
515 changes: 0 additions & 515 deletions mfbt/Tuple.h

This file was deleted.

1 change: 0 additions & 1 deletion mfbt/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ EXPORTS.mozilla = [
"ThreadSafety.h",
"ThreadSafeWeakPtr.h",
"ToString.h",
"Tuple.h",
"TypedEnumBits.h",
"Types.h",
"TypeTraits.h",
Expand Down
362 changes: 0 additions & 362 deletions mfbt/tests/TestTuple.cpp

This file was deleted.

1 change: 0 additions & 1 deletion mfbt/tests/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ CppUnitTests(
"TestSplayTree",
"TestTemplateLib",
"TestTextUtils",
"TestTuple",
"TestTypedEnum",
"TestTypeTraits",
"TestUniquePtr",
Expand Down
1 change: 0 additions & 1 deletion testing/cppunittest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ skip-if = os != 'win'
[TestTemplateLib]
[TestTextUtils]
[TestThreadSafeWeakPtr]
[TestTuple]
[TestTypeTraits]
[TestTypedEnum]
[TestUniquePtr]
Expand Down
2 changes: 1 addition & 1 deletion toolkit/xre/dllservices/tests/TestDllInterceptor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ template <typename OrigFuncT, typename... Args,
typename ArgTuple = std::tuple<Args...>, size_t... Indices>
decltype(auto) Apply(OrigFuncT& aFunc, ArgTuple&& aArgs,
std::index_sequence<Indices...>) {
return aFunc(std::get<Indices>(std::forward<ArgTuple>(aArgs))...);
return std::apply(aFunc, aArgs);
}

#define DEFINE_TEST_FUNCTION(calling_convention) \
Expand Down
Loading

0 comments on commit 02db5a8

Please sign in to comment.