Bug 125795 - [Win] Remove dead code after conversion to VS2013
Summary: [Win] Remove dead code after conversion to VS2013
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Brent Fulgham
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-16 12:03 PST by Brent Fulgham
Modified: 2013-12-16 16:03 PST (History)
12 users (show)

See Also:


Attachments
Patch (21.20 KB, patch)
2013-12-16 13:24 PST, Brent Fulgham
no flags Details | Formatted Diff | Diff
Patch (20.04 KB, patch)
2013-12-16 13:56 PST, Brent Fulgham
darin: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brent Fulgham 2013-12-16 12:03:25 PST
Remove dead code left after migrating to require VS2013 to build.
Comment 1 Brent Fulgham 2013-12-16 13:24:35 PST
Created attachment 219346 [details]
Patch
Comment 2 EFL EWS Bot 2013-12-16 13:30:21 PST
Comment on attachment 219346 [details]
Patch

Attachment 219346 [details] did not pass efl-ews (efl):
Output: http://webkit-queues.appspot.com/results/50088031
Comment 3 Anders Carlsson 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!
Comment 4 kov's GTK+ EWS bot 2013-12-16 13:35:35 PST
Comment on attachment 219346 [details]
Patch

Attachment 219346 [details] did not pass gtk-ews (gtk):
Output: http://webkit-queues.appspot.com/results/50108001
Comment 5 Brent Fulgham 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!
Comment 6 Build Bot 2013-12-16 13:55:44 PST
Comment on attachment 219346 [details]
Patch

Attachment 219346 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.appspot.com/results/44318102
Comment 7 Brent Fulgham 2013-12-16 13:56:08 PST
Created attachment 219349 [details]
Patch
Comment 8 Brent Fulgham 2013-12-16 16:03:08 PST
Committed r160671: <http://trac.webkit.org/changeset/160671>