Remove unused QT_NO_TEXTSTREAM.

It was checked in a few places, but it didn't actually remove QTextStream,
so it was pretty useless.

Change-Id: I8eaf28893cd6c7acbe1c0b69d58de90742aee755
Reviewed-by: João Abecasis <joao.abecasis@nokia.com>
This commit is contained in:
David Faure 2012-01-11 11:15:03 +01:00 committed by Qt by Nokia
parent aa4c2bbce9
commit f65a10b733
11 changed files with 2 additions and 38 deletions

View File

@ -104,9 +104,6 @@
#ifndef QT_NO_TEMPORARYFILE
# define QT_NO_TEMPORARYFILE
#endif
#ifndef QT_NO_TEXTSTREAM
# define QT_NO_TEXTSTREAM
#endif
#ifndef QT_NO_SETTINGS
# define QT_NO_SETTINGS
#endif

View File

@ -77,9 +77,6 @@
#endif
/* File I/O */
#ifndef QT_NO_TEXTSTREAM
# define QT_NO_TEXTSTREAM
#endif
#ifndef QT_NO_SETTINGS
# define QT_NO_SETTINGS
#endif

View File

@ -289,9 +289,6 @@
// HtmlParser
//#define QT_NO_TEXTHTMLPARSER
// QTextStream
//#define QT_NO_TEXTSTREAM
// QToolTip
//#define QT_NO_TOOLTIP
@ -351,16 +348,6 @@
#define QT_NO_FILESYSTEMMODEL
#endif
// QHostInfo
#if !defined(QT_NO_HOSTINFO) && (defined(QT_NO_TEXTSTREAM))
#define QT_NO_HOSTINFO
#endif
// XPM Image Format
#if !defined(QT_NO_IMAGEFORMAT_XPM) && (defined(QT_NO_TEXTSTREAM))
#define QT_NO_IMAGEFORMAT_XPM
#endif
// QLibrary
#if !defined(QT_NO_LIBRARY) && (defined(QT_NO_SETTINGS))
#define QT_NO_LIBRARY
@ -597,7 +584,7 @@
#endif
// QPrinter
#if !defined(QT_NO_PRINTER) && (defined(QT_NO_TEXTSTREAM) || defined(QT_NO_PICTURE) || defined(QT_NO_TEMPORARYFILE))
#if !defined(QT_NO_PRINTER) && (defined(QT_NO_PICTURE) || defined(QT_NO_TEMPORARYFILE))
#define QT_NO_PRINTER
#endif

View File

@ -192,13 +192,6 @@ Requires:
Name: QProcess
SeeAlso: ???
Feature: TEXTSTREAM
Description: Supports reading and writing of text.
Section: File I/O
Requires:
Name: QTextStream
SeeAlso: ???
Feature: TEMPORARYFILE
Description: Provides an I/O device that operates on temporary files.
Section: File I/O

View File

@ -129,10 +129,8 @@ public:
inline QNoDebug(){}
inline QNoDebug(const QDebug &){}
inline ~QNoDebug(){}
#if !defined( QT_NO_TEXTSTREAM )
inline QNoDebug &operator<<(QTextStreamFunction) { return *this; }
inline QNoDebug &operator<<(QTextStreamManipulator) { return *this; }
#endif
inline QNoDebug &space() { return *this; }
inline QNoDebug &nospace() { return *this; }
inline QNoDebug &maybeSpace() { return *this; }

View File

@ -1177,7 +1177,7 @@ QDebug operator<<(QDebug debug, const QSslCertificate &certificate)
<< ',' << certificate.issuerInfo(QSslCertificate::Organization)
<< ',' << certificate.subjectInfo(QSslCertificate::Organization)
<< ',' << certificate.subjectAlternativeNames()
#ifndef QT_NO_TEXTSTREAM
#ifndef QT_NO_DATESTRING
<< ',' << certificate.effectiveDate()
<< ',' << certificate.expiryDate()
#endif

View File

@ -19,7 +19,6 @@ DEFINES += \
QT_NO_QOBJECT \
QT_NO_STL \
QT_NO_SYSTEMLOCALE \
QT_NO_TEXTSTREAM \
QT_NO_THREAD \
QT_NO_UNICODETABLES \
QT_NO_USING_NAMESPACE \

View File

@ -22,7 +22,6 @@ DEFINES += \
QT_NO_QOBJECT \
QT_NO_STL \
QT_NO_SYSTEMLOCALE \
QT_NO_TEXTSTREAM \
QT_NO_THREAD \
QT_NO_UNICODETABLES \
QT_NO_USING_NAMESPACE \

View File

@ -1675,7 +1675,6 @@ void QSplitter::setStretchFactor(int index, int stretch)
}
#ifndef QT_NO_TEXTSTREAM
/*!
\relates QSplitter
\obsolete
@ -1706,7 +1705,6 @@ QTextStream& operator>>(QTextStream& ts, QSplitter& splitter)
splitter.restoreState(line.toAscii());
return ts;
}
#endif // QT_NO_TEXTSTREAM
QT_END_NAMESPACE

View File

@ -133,10 +133,8 @@ private:
friend class QSplitterHandle;
};
#ifndef QT_NO_TEXTSTREAM
Q_WIDGETS_EXPORT QTextStream& operator<<(QTextStream&, const QSplitter&);
Q_WIDGETS_EXPORT QTextStream& operator>>(QTextStream&, QSplitter&);
#endif
class QSplitterHandlePrivate;
class Q_WIDGETS_EXPORT QSplitterHandle : public QWidget

View File

@ -200,10 +200,8 @@ void tst_QSslCertificate::emptyConstructor()
QCOMPARE(certificate.issuerInfo(QSslCertificate::Organization), QStringList());
QCOMPARE(certificate.subjectInfo(QSslCertificate::Organization), QStringList());
QCOMPARE(certificate.subjectAlternativeNames(),(QMultiMap<QSsl::AlternativeNameEntryType, QString>()));
#ifndef QT_NO_TEXTSTREAM
QCOMPARE(certificate.effectiveDate(), QDateTime());
QCOMPARE(certificate.expiryDate(), QDateTime());
#endif
}
Q_DECLARE_METATYPE(QSsl::EncodingFormat);