Skip to content

Commit 58b0008

Browse files
committed
Remove asserts that may not be correct
1 parent 0d69c8c commit 58b0008

File tree

3 files changed

+0
-18
lines changed

3 files changed

+0
-18
lines changed

Modules/_zstd/compressor.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -304,10 +304,6 @@ _zstd_ZstdCompressor_new(PyTypeObject *type, PyObject *Py_UNUSED(args), PyObject
304304
goto error;
305305
}
306306

307-
assert(self->dict == NULL);
308-
assert(self->use_multithread == 0);
309-
assert(self->compression_level == 0);
310-
assert(self->inited == 0);
311307

312308
/* Compression context */
313309
self->cctx = ZSTD_createCCtx();

Modules/_zstd/decompressor.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -622,15 +622,6 @@ _zstd_ZstdDecompressor_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
622622
goto error;
623623
}
624624

625-
assert(self->dict == NULL);
626-
assert(self->input_buffer == NULL);
627-
assert(self->input_buffer_size == 0);
628-
assert(self->in_begin == 0);
629-
assert(self->in_end == 0);
630-
assert(self->unused_data == NULL);
631-
assert(self->eof == 0);
632-
assert(self->inited == 0);
633-
634625
/* needs_input flag */
635626
self->needs_input = 1;
636627

Modules/_zstd/zdict.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,6 @@ _zstd_ZstdDict_new(PyTypeObject *type, PyObject *Py_UNUSED(args), PyObject *Py_U
3030
goto error;
3131
}
3232

33-
assert(self->dict_content == NULL);
34-
assert(self->dict_id == 0);
35-
assert(self->d_dict == NULL);
36-
assert(self->inited == 0);
37-
3833
/* ZSTD_CDict dict */
3934
self->c_dicts = PyDict_New();
4035
if (self->c_dicts == NULL) {

0 commit comments

Comments
 (0)