From afe00c12f43dfa5a3b399ed59635c92db2eed83e Mon Sep 17 00:00:00 2001 From: Fred Gleason Date: Wed, 3 Apr 2024 12:47:54 -0400 Subject: [PATCH] 2024-04-02 Fred Gleason * Removed JSON generation methods. Signed-off-by: Fred Gleason --- ChangeLog | 2 + lib/rdweb.cpp | 159 +------------------------------------------------- lib/rdweb.h | 16 +---- 3 files changed, 4 insertions(+), 173 deletions(-) diff --git a/ChangeLog b/ChangeLog index dd049e80..7ade6350 100644 --- a/ChangeLog +++ b/ChangeLog @@ -24690,3 +24690,5 @@ * Refactored the PAD subsystem to use native Qt JSON methods. 2024-04-02 Fred Gleason * Modified the Sound Panel classes to use native Qt JSON methods. +2024-04-02 Fred Gleason + * Removed JSON generation methods. diff --git a/lib/rdweb.cpp b/lib/rdweb.cpp index a210eff5..18ffccfd 100644 --- a/lib/rdweb.cpp +++ b/lib/rdweb.cpp @@ -3,7 +3,7 @@ // Functions for interfacing with web components using the // Common Gateway Interface (CGI) Standard // -// (C) Copyright 1996-2021 Fred Gleason +// (C) Copyright 1996-2024 Fred Gleason // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License version 2 as @@ -195,163 +195,6 @@ QString RDXmlUnescape(const QString &str) } -QString RDJsonPadding(int padding) -{ - QString ret=""; - - for(int i=0;i +// (C) Copyright 1996-2024 Fred Gleason // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License version 2 as @@ -53,20 +53,6 @@ extern QString RDXmlField(const QString &tag,const QTime &value, extern QString RDXmlField(const QString &tag); extern QString RDXmlEscape(const QString &str); extern QString RDXmlUnescape(const QString &str); -extern QString RDJsonPadding(int padding); -extern QString RDJsonEscape(const QString &str); -extern QString RDJsonNullField(const QString &name,int padding=0, - bool final=false); -extern QString RDJsonField(const QString &name,bool value,int padding=0, - bool final=false); -extern QString RDJsonField(const QString &name,int value,int padding=0, - bool final=false); -extern QString RDJsonField(const QString &name,unsigned value,int padding=0, - bool final=false); -extern QString RDJsonField(const QString &name,const QString &value, - int padding=0,bool final=false); -extern QString RDJsonField(const QString &name,const QDateTime &value, - int padding=0,bool final=false); extern QString RDUrlEscape(const QString &str); extern QString RDUrlUnescape(const QString &str);