diff options
author | Robin Burchell <robin+qt@viroteck.net> | 2012-04-12 13:37:43 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-04-12 17:22:19 +0200 |
commit | 5aa8e5a81cfa1b7a45f5b1642d4706962ee821ed (patch) | |
tree | 3f23508dc030ad98bb895a2426150f4ca9fc47ce /src/gui/painting/qpaintbuffer.cpp | |
parent | 6b39f614d18597d4b5364dbd8b56ce8125e88e45 (diff) |
Remove QPaintBufferSignalProxy and QPaintBufferResource.
Nothing seems to use these...
Change-Id: I58b3e5f8536e43b3076da0a86d9093a6e11b947a
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'src/gui/painting/qpaintbuffer.cpp')
-rw-r--r-- | src/gui/painting/qpaintbuffer.cpp | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/src/gui/painting/qpaintbuffer.cpp b/src/gui/painting/qpaintbuffer.cpp index 9a57404169..309b619082 100644 --- a/src/gui/painting/qpaintbuffer.cpp +++ b/src/gui/painting/qpaintbuffer.cpp @@ -98,19 +98,6 @@ QTextItemIntCopy::~QTextItemIntCopy() /************************************************************************ * - * QPaintBufferSignalProxy - * - ************************************************************************/ - -Q_GLOBAL_STATIC(QPaintBufferSignalProxy, theSignalProxy) - -QPaintBufferSignalProxy *QPaintBufferSignalProxy::instance() -{ - return theSignalProxy(); -} - -/************************************************************************ - * * QPaintBufferPrivate * ************************************************************************/ @@ -124,8 +111,6 @@ QPaintBufferPrivate::QPaintBufferPrivate() QPaintBufferPrivate::~QPaintBufferPrivate() { - QPaintBufferSignalProxy::instance()->emitAboutToDestroy(this); - for (int i = 0; i < commands.size(); ++i) { const QPaintBufferCommand &cmd = commands.at(i); if (cmd.id == QPaintBufferPrivate::Cmd_DrawTextItem) @@ -2058,45 +2043,6 @@ void QPaintEngineExReplayer::process(const QPaintBufferCommand &cmd) } } -QPaintBufferResource::QPaintBufferResource(FreeFunc f, QObject *parent) : QObject(parent), free(f) -{ - connect(QPaintBufferSignalProxy::instance(), SIGNAL(aboutToDestroy(const QPaintBufferPrivate*)), this, SLOT(remove(const QPaintBufferPrivate*))); -} - -QPaintBufferResource::~QPaintBufferResource() -{ - for (Cache::iterator it = m_cache.begin(); it != m_cache.end(); ++it) - free(it.value()); -} - -void QPaintBufferResource::insert(const QPaintBufferPrivate *key, void *value) -{ - Cache::iterator it = m_cache.find(key); - if (it != m_cache.end()) { - free(it.value()); - it.value() = value; - } else { - m_cache.insert(key, value); - } -} - -void *QPaintBufferResource::value(const QPaintBufferPrivate *key) -{ - Cache::iterator it = m_cache.find(key); - if (it != m_cache.end()) - return it.value(); - return 0; -} - -void QPaintBufferResource::remove(const QPaintBufferPrivate *key) -{ - Cache::iterator it = m_cache.find(key); - if (it != m_cache.end()) { - free(it.value()); - m_cache.erase(it); - } -} - QDataStream &operator<<(QDataStream &stream, const QPaintBufferCommand &command) { quint32 id = command.id; |