RESOLVED FIXED 125795
[Win] Remove dead code after conversion to VS2013
https://bugs.webkit.org/show_bug.cgi?id=125795
Summary [Win] Remove dead code after conversion to VS2013
Brent Fulgham
Reported 2013-12-16 12:03:25 PST
Remove dead code left after migrating to require VS2013 to build.
Attachments
Patch (21.20 KB, patch)
2013-12-16 13:24 PST, Brent Fulgham
no flags
Patch (20.04 KB, patch)
2013-12-16 13:56 PST, Brent Fulgham
darin: review+
Brent Fulgham
Comment 1 2013-12-16 13:24:35 PST
EFL EWS Bot
Comment 2 2013-12-16 13:30:21 PST
Anders Carlsson
Comment 3 2013-12-16 13:33:28 PST
Comment on attachment 219346 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=219346&action=review > Source/WTF/wtf/Compiler.h:-73 > -#if _MSC_VER < 1600 > -#define WTF_COMPILER_MSVC9_OR_LOWER 1 > -#endif I think you should add an #error if someone tries to use an old version of VS2013. > Source/WTF/wtf/StdLibExtras.h:-321 > -#if (defined(_MSC_VER) && _MSC_VER < 1700) || (COMPILER(GCC) && !COMPILER(CLANG) && !GCC_VERSION_AT_LEAST(4, 8, 1)) > - > -// Work-around for Pre-C++11 syntax in MSVC 2010, and prior as well as GCC < 4.8.1. > -namespace std { > - template<class T> struct is_trivially_destructible { > - static const bool value = std::has_trivial_destructor<T>::value; > - }; > -} > -#endif This workaround needs to be left in for older GCCs. > Source/WTF/wtf/StdLibExtras.h:-354 > -// MSVC 2013 supports std::make_unique already. > -#if !defined(_MSC_VER) || _MSC_VER < 1800 > - template<class T> struct _Unique_if { > - typedef unique_ptr<T> _Single_object; > - }; > - > - template<class T> struct _Unique_if<T[]> { > - typedef unique_ptr<T[]> _Unknown_bound; > - }; > - > - template<class T, size_t N> struct _Unique_if<T[N]> { > - typedef void _Known_bound; > - }; > - > - template<class T, class... Args> inline typename _Unique_if<T>::_Single_object > - make_unique(Args&&... args) > - { > - return unique_ptr<T>(new T(std::forward<Args>(args)...)); > - } > - > - template<class T> inline typename _Unique_if<T>::_Unknown_bound > - make_unique(size_t n) > - { > - typedef typename remove_extent<T>::type U; > - return unique_ptr<T>(new U[n]()); > - } > - > - template<class T, class... Args> typename _Unique_if<T>::_Known_bound > - make_unique(Args&&...) = delete; > -#endif This workaround is used by everyone except VS2013!
kov's GTK+ EWS bot
Comment 4 2013-12-16 13:35:35 PST
Brent Fulgham
Comment 5 2013-12-16 13:38:35 PST
(In reply to comment #3) > (From update of attachment 219346 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=219346&action=review > > > Source/WTF/wtf/Compiler.h:-73 > > -#if _MSC_VER < 1600 > > -#define WTF_COMPILER_MSVC9_OR_LOWER 1 > > -#endif > > I think you should add an #error if someone tries to use an old version of VS2013. ok! > > Source/WTF/wtf/StdLibExtras.h:-321 > > -#if (defined(_MSC_VER) && _MSC_VER < 1700) || (COMPILER(GCC) && !COMPILER(CLANG) && !GCC_VERSION_AT_LEAST(4, 8, 1)) > > - > > -// Work-around for Pre-C++11 syntax in MSVC 2010, and prior as well as GCC < 4.8.1. > > -namespace std { > > - template<class T> struct is_trivially_destructible { > > - static const bool value = std::has_trivial_destructor<T>::value; > > - }; > > -} > > -#endif > > This workaround needs to be left in for older GCCs. ok! > > Source/WTF/wtf/StdLibExtras.h:-354 > > -// MSVC 2013 supports std::make_unique already. > > -#if !defined(_MSC_VER) || _MSC_VER < 1800 > > - template<class T> struct _Unique_if { > > - typedef unique_ptr<T> _Single_object; > > This workaround is used by everyone except VS2013! Whoops!
Build Bot
Comment 6 2013-12-16 13:55:44 PST
Brent Fulgham
Comment 7 2013-12-16 13:56:08 PST
Brent Fulgham
Comment 8 2013-12-16 16:03:08 PST
Note You need to log in before you can comment on or make changes to this bug.