From 58d18cc28a13e1a01a875d3c943cf0e9a90f35f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Du=C5=A1an=20Poizl?= Date: Sun, 19 Jan 2025 15:11:14 +0100 Subject: [PATCH] Remove unused function --- imageinfo.cpp | 8 -------- imageinfo.h | 1 - 2 files changed, 9 deletions(-) diff --git a/imageinfo.cpp b/imageinfo.cpp index fb3c587..0088205 100644 --- a/imageinfo.cpp +++ b/imageinfo.cpp @@ -51,14 +51,6 @@ FITSRecord::FITSRecord(const LibXISF::Property &property) xisf = true; } -QByteArray FITSRecord::valueToByteArray() const -{ - if(value.type() == QVariant::Bool) - return value.toBool() ? "T" : "F"; - else - return value.toString().toLatin1(); -} - ImageInfo::ImageInfo(QWidget *parent) : QTreeWidget(parent) { setColumnCount(3); diff --git a/imageinfo.h b/imageinfo.h index 2a194f7..7d1ac36 100644 --- a/imageinfo.h +++ b/imageinfo.h @@ -19,7 +19,6 @@ struct FITSRecord FITSRecord(const QByteArray &key, const QVariant &value, const QByteArray &comment); FITSRecord(const LibXISF::FITSKeyword &record); FITSRecord(const LibXISF::Property &property); - QByteArray valueToByteArray() const; }; class SkyPoint