]> granicus.if.org Git - graphviz/commitdiff
sparse SparseMatrix_init: remove dead stores to 'property'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 29 Sep 2022 04:32:32 +0000 (21:32 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 30 Sep 2022 04:08:54 +0000 (21:08 -0700)
`property` is cleared immediately before these lines.

lib/sparse/SparseMatrix.c

index bb7b72ce3bf708cec2ed1c48dab10fc23eb55b3e..f4efd6a0fa8d26e2b0f42617b602672263a09daf 100644 (file)
@@ -310,10 +310,6 @@ static SparseMatrix SparseMatrix_init(int m, int n, int type, size_t sz, int for
   A->a = NULL;
   A->format = format;
   A->property = 0;
-  clear_flag(A->property, MATRIX_PATTERN_SYMMETRIC);
-  clear_flag(A->property, MATRIX_SYMMETRIC);
-  clear_flag(A->property, MATRIX_SKEW);
-  clear_flag(A->property, MATRIX_HERMITIAN);
   return A;
 }