diff options
| author | Markus Mittendrein <git@maxmitti.tk> | 2020-04-21 22:02:16 +0200 |
|---|---|---|
| committer | Markus Mittendrein <git@maxmitti.tk> | 2020-04-21 22:02:16 +0200 |
| commit | ad6987ca35b204bfdd54a64f715abe1f6a8b4409 (patch) | |
| tree | ac1828b873a555f9a6b79d9f4edea9022c492fb8 /src/cc4group.c | |
| parent | 90c687cd9e3bc8c7881d0e1695effd628d84ab95 (diff) | |
| download | cc4group-ad6987ca35b204bfdd54a64f715abe1f6a8b4409.tar.gz cc4group-ad6987ca35b204bfdd54a64f715abe1f6a8b4409.zip | |
Remove unused cc4group->readState.cleanupJobs
Diffstat (limited to 'src/cc4group.c')
| -rw-r--r-- | src/cc4group.c | 9 |
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) |
