Remove dead code.

Change-Id: Idfaef408536bafbb31444ec8728dbcf289abac8d
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@theqtcompany.com>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@theqtcompany.com>
This commit is contained in:
Jake Petroules 2015-11-27 02:57:55 -08:00
parent bdf49888ef
commit f00794bb12
9 changed files with 7 additions and 42 deletions

View File

@ -48,6 +48,8 @@
#include <algorithm>
#include <Carbon/Carbon.h>
QT_BEGIN_NAMESPACE
//

View File

@ -55,6 +55,8 @@
#include <qpa/qplatformintegration.h>
#include <qpa/qplatformnativeinterface.h>
#include <Carbon/Carbon.h>
QT_BEGIN_NAMESPACE
const char *QCocoaTheme::name = "cocoa";

View File

@ -48,7 +48,6 @@
#include <qpa/qplatformscreen.h>
#include <AppKit/AppKit.h>
#include <Carbon/Carbon.h>
#include <QDebug>

View File

@ -33,7 +33,6 @@
#include <QtCore/qglobal.h>
#include <Carbon/Carbon.h>
#include <dlfcn.h>
#include "qnsview.h"

View File

@ -31,8 +31,6 @@
**
****************************************************************************/
#include <Carbon/Carbon.h>
#include "qnsview.h"
#include "qcocoahelpers.h"
#include "qcocoaaccessibility.h"

View File

@ -63,30 +63,10 @@
#include "QtGui/qpainter.h"
#include <Carbon/Carbon.h>
QT_BEGIN_NAMESPACE
class QWidget;
class QDragMoveEvent;
/* Event masks */
// internal Qt types
enum {
//AE types
typeAEClipboardChanged = 1,
//types
typeQWidget = 1, /* QWidget * */
//params
kEventParamQWidget = 'qwid', /* typeQWidget */
//events
kEventQtRequestContext = 13,
kEventQtRequestMenubarUpdate = 14,
kEventQtRequestShowSheet = 17,
kEventQtRequestActivate = 18,
kEventQtRequestWindowChange = 20
};
// Simple class to manage short-lived regions
class QMacSmartQuickDrawRegion
{
@ -171,10 +151,6 @@ extern QPoint qt_mac_nativeMapFromParent(const QWidget *child, const QPoint &pt)
# undef check
#endif
QFont qfontForThemeFont(ThemeFontID themeID);
QColor qcolorForThemeTextColor(ThemeTextColor themeColor);
struct QMacDndAnswerRecord {
QRect rect;
Qt::KeyboardModifiers modifiers;

View File

@ -1,4 +1,4 @@
!x11:osx {
LIBS_PRIVATE += -framework Carbon -framework AppKit -lz
LIBS_PRIVATE += -framework AppKit -lz
*-mwerks:INCLUDEPATH += compat
}

View File

@ -50,6 +50,7 @@ contains( styles, mac ) {
styles/qmacstyle_mac_p.h \
styles/qmacstyle_mac_p_p.h
OBJECTIVE_SOURCES += styles/qmacstyle_mac.mm
LIBS_PRIVATE += -framework Carbon
} else {
DEFINES += QT_NO_STYLE_MAC
}

View File

@ -60,18 +60,6 @@
#include "qdockarealayout_p.h"
#include "qtoolbararealayout_p.h"
#ifdef Q_DEAD_CODE_FROM_QT4_MAC
// Forward defs to make avoid including Carbon.h (faster compile you know ;).
struct OpaqueHIObjectRef;
typedef struct OpaqueHIObjectRef* HIObjectRef;
typedef HIObjectRef HIToolbarItemRef;
typedef const void * CFTypeRef;
typedef const struct __CFString * CFStringRef;
#include <private/qunifiedtoolbarsurface_mac_p.h>
#endif // Q_DEAD_CODE_FROM_QT4_MAC
QT_BEGIN_NAMESPACE
class QToolBar;