summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/qwaylandsharedmemoryformathelper_p.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/shared/qwaylandsharedmemoryformathelper_p.h b/src/shared/qwaylandsharedmemoryformathelper_p.h
index ac4428df..6feaff3f 100644
--- a/src/shared/qwaylandsharedmemoryformathelper_p.h
+++ b/src/shared/qwaylandsharedmemoryformathelper_p.h
@@ -71,7 +71,6 @@ public:
default: return QImage::Format_Invalid;
}
}
- static inline QList<wl_shm_format> supportedWaylandFormats();
private:
//IMPLEMENTATION (which has to be inline in the header because of the include trick)
@@ -127,19 +126,6 @@ wl_shm_format QWaylandSharedMemoryFormatHelper::fromQImageFormat(QImage::Format
return array.data[format];
}
-QList<wl_shm_format> QWaylandSharedMemoryFormatHelper::supportedWaylandFormats()
-{
- QList<wl_shm_format> retFormats;
- Array array = getData();
- for (size_t i = 0; i < array.size; i++) {
- if (int(array.data[i]) != INT_MIN
- && !retFormats.contains(array.data[i])) {
- retFormats.append(array.data[i]);
- }
- }
- return retFormats;
-}
-
QT_END_NAMESPACE
#endif //QWAYLANDSHAREDMEMORYFORMATHELPER_H