summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarkus Mittendrein <git@maxmitti.tk>2020-04-21 22:02:16 +0200
committerMarkus Mittendrein <git@maxmitti.tk>2020-04-21 22:02:16 +0200
commitad6987ca35b204bfdd54a64f715abe1f6a8b4409 (patch)
treeac1828b873a555f9a6b79d9f4edea9022c492fb8 /src
parent90c687cd9e3bc8c7881d0e1695effd628d84ab95 (diff)
downloadcc4group-ad6987ca35b204bfdd54a64f715abe1f6a8b4409.tar.gz
cc4group-ad6987ca35b204bfdd54a64f715abe1f6a8b4409.zip
Remove unused cc4group->readState.cleanupJobs
Diffstat (limited to 'src')
-rw-r--r--src/cc4group.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/cc4group.c b/src/cc4group.c
index 7f822d9..38662e0 100644
--- a/src/cc4group.c
+++ b/src/cc4group.c
@@ -123,7 +123,6 @@ struct CC4Group_t {
size_t position;
z_stream gzStrm;
const uint8_t* lastData;
- CleanUpJobList* cleanupJobs;
} readState;
bool lazy;
@@ -624,13 +623,6 @@ static void cc4group_setLazy(CC4Group* const this, const bool lazy)
static void cc4group_cleanupReadState(CC4Group* const this)
{
- ForeachCleanupJob(this->readState.cleanupJobs)
- {
- job->value.func(job->value.data);
- }
- CleanUpJobListDestroy(this->readState.cleanupJobs);
- this->readState.cleanupJobs = NULL;
-
if(this->readState.lastData != NULL && this->lazy)
{
cc4group_applyMemoryManagementEnd(this->readState.callback.memoryManagement, this->readState.lastData);
@@ -1236,7 +1228,6 @@ static void cc4group_init(CC4Group* const this)
this->readState.active = false;
this->readState.lastData = NULL;
- this->readState.cleanupJobs = CleanUpJobListNew();
}
static bool cc4group_setMakerRecursively(CC4Group* const this, const C4GroupEntryData* groupEntry, const char* const maker)