@@ -209,27 +209,12 @@ class NewCallParams final {
209
209
genMapBuffers (builder, loc, stt, dimSizesValues, params[kParamDimSizes ],
210
210
params[kParamDim2Lvl ], params[kParamLvl2Dim ]);
211
211
// Secondary and primary types encoding.
212
- setTemplateTypes (stt);
213
- // Finally, make note that initialization is complete.
214
- assert (isInitialized () && " Initialization failed" );
215
- // And return `this` for method chaining.
216
- return *this ;
217
- }
218
-
219
- // / (Re)sets the C++ template type parameters, and returns `this`
220
- // / for method chaining. This is already done as part of `genBuffers`,
221
- // / but is factored out so that it can also be called independently
222
- // / whenever subsequent `genNewCall` calls want to reuse the same
223
- // / buffers but different type parameters.
224
- //
225
- // TODO: This is only ever used by sparse2sparse-viaCOO `ConvertOp`;
226
- // is there a better way to handle that than this one-off setter method?
227
- NewCallParams &setTemplateTypes (SparseTensorType stt) {
228
212
const auto enc = stt.getEncoding ();
229
213
params[kParamPosTp ] = constantPosTypeEncoding (builder, loc, enc);
230
214
params[kParamCrdTp ] = constantCrdTypeEncoding (builder, loc, enc);
231
215
params[kParamValTp ] =
232
216
constantPrimaryTypeEncoding (builder, loc, stt.getElementType ());
217
+ // Return `this` for method chaining.
233
218
return *this ;
234
219
}
235
220
0 commit comments