summaryrefslogtreecommitdiffstats
path: root/src/corelib/codecs/qtextcodec_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/codecs/qtextcodec_p.h')
-rw-r--r--src/corelib/codecs/qtextcodec_p.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/corelib/codecs/qtextcodec_p.h b/src/corelib/codecs/qtextcodec_p.h
index 7fcf6df984..ef5758619d 100644
--- a/src/corelib/codecs/qtextcodec_p.h
+++ b/src/corelib/codecs/qtextcodec_p.h
@@ -66,21 +66,6 @@ QT_BEGIN_NAMESPACE
typedef void (*QTextCodecStateFreeFunction)(QTextCodec::ConverterState*);
-struct QTextCodecUnalignedPointer
-{
- static inline QTextCodecStateFreeFunction decode(const uint *src)
- {
- quintptr data;
- memcpy(&data, src, sizeof(data));
- return reinterpret_cast<QTextCodecStateFreeFunction>(data);
- }
- static inline void encode(uint *dst, QTextCodecStateFreeFunction fn)
- {
- quintptr data = reinterpret_cast<quintptr>(fn);
- memcpy(dst, &data, sizeof(data));
- }
-};
-
bool qTextCodecNameMatch(const char *a, const char *b);
#else // without textcodec: