update: remove obsolete define SQUASHFS

Origin commit data
------------------
Branch: ni/coolstream
Commit: 5f98f95591
Author: vanhofen <vanhofen@gmx.de>
Date: 2023-03-19 (Sun, 19 Mar 2023)

Origin message was:
------------------
- update: remove obsolete define SQUASHFS

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2023-03-19 21:49:26 +01:00
parent 93317ec0ad
commit cda5398c4e

View File

@@ -59,8 +59,6 @@
#include <lib/libnet/libnet.h>
#define SQUASHFS
#include <curl/curl.h>
#include <curl/easy.h>
@@ -89,7 +87,6 @@ extern int allow_flash;
//#define DRYRUN
//#define gTmpPath "/var/update/"
#define gTmpPath "/tmp/"
#define gUserAgent "neutrino/softupdater 1.0"
@@ -409,7 +406,6 @@ bool CFlashUpdate::checkVersion4Update()
{
char msg[400];
CFlashVersionInfo *versionInfo;
neutrino_locale_t msg_body;
dprintf(DEBUG_NORMAL, "[update] mode is %d\n", softupdate_mode);
if (softupdate_mode == 1) // internet-update
{
@@ -424,10 +420,8 @@ bool CFlashUpdate::checkVersion4Update()
hide();
msg_body = LOCALE_FLASHUPDATE_MSGBOX;
#ifdef SQUASHFS
versionInfo = new CFlashVersionInfo(newVersion); // Memory leak: versionInfo
sprintf(msg, g_Locale->getText(msg_body), versionInfo->getType(true), versionInfo->getVersionString(), versionInfo->getDate(), versionInfo->getTime());
sprintf(msg, g_Locale->getText(LOCALE_FLASHUPDATE_MSGBOX), versionInfo->getType(true), versionInfo->getVersionString(), versionInfo->getDate(), versionInfo->getTime());
if (gotImage)
{
@@ -449,7 +443,6 @@ bool CFlashUpdate::checkVersion4Update()
}
delete versionInfo;
#endif
}
else
{