remove app uuid

This hasn't been used on the backend in a long time (and appears to get
stripped out on several platforms). No point in keeping it around.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2024-01-07 14:35:56 -08:00
parent ef35c3e8cb
commit 0a46068501
4 changed files with 1 additions and 17 deletions

View file

@ -42,7 +42,6 @@ bool CheckCloudConnection::checkServer()
QNetworkRequest request;
request.setRawHeader("Accept", "text/plain");
request.setRawHeader("User-Agent", getUserAgent().toUtf8());
request.setRawHeader("Client-Id", getUUID().toUtf8());
request.setUrl(QString(prefs.cloud_base_url) + TEAPOT);
reply = mgr->get(request);
QTimer timer;

View file

@ -1451,19 +1451,6 @@ void init_proxy()
QNetworkProxy::setApplicationProxy(proxy);
}
QString getUUID()
{
QString uuidString;
uuidString = qPrefUpdateManager::uuidString();
if (uuidString != "") {
QUuid uuid = QUuid::createUuid();
uuidString = uuid.toString();
qPrefUpdateManager::set_uuidString(uuidString);
}
uuidString.replace("{", "").replace("}", "");
return uuidString;
}
void parse_seabear_header(const char *filename, struct xml_params *params)
{
QFile f(filename);

View file

@ -44,7 +44,6 @@ QString localFilePath(const QString &originalFilename);
int getCloudURL(QString &filename);
bool parseGpsText(const QString &gps_text, double *latitude, double *longitude);
void init_proxy();
QString getUUID();
QStringList getWaterTypesAsString();
extern const QStringList videoExtensionsList;
QStringList mediaExtensionFilters();

View file

@ -41,8 +41,7 @@ void UpdateManager::checkForUpdates(bool automatic)
#endif
isAutomaticCheck = automatic;
QString version = subsurface_canonical_version();
QString uuidString = getUUID();
QString url = QString("http://updatecheck.subsurface-divelog.org/updatecheck.html?os=%1&version=%2&uuid=%3").arg(os, version, uuidString);
QString url = QString("http://updatecheck.subsurface-divelog.org/updatecheck.html?os=%1&version=%2").arg(os, version);
QNetworkRequest request;
request.setUrl(url);
request.setRawHeader("Accept", "text/xml");