diff --git a/src/lib_new/utils.ts b/src/lib_new/utils.ts index f9cb78d0f3..4c17bf14ae 100644 --- a/src/lib_new/utils.ts +++ b/src/lib_new/utils.ts @@ -169,17 +169,7 @@ export function toIDLType(idl: CandidClass, parents: Parent[]): IDL.Type { return idl.getIDL(parents); } if (idl._azleRecLambda) { - // console.log( - // 'WE ARE LOOKING AT A RECURSIVE THING', - // `"${idl.name}"`, - // JSON.stringify(idl) - // ); - // idl._azleRecLambda = false; - // console.log(idl); - // console.log(idl()); return toIDLType(idl(), [...parents, idl._azleName]); - // return idl().getIDL([...parents, idl.name]); - // throw 'hmm'; } // if (idl.display === undefined || idl.getIDL === undefined) { // throw Error(`${JSON.stringify(idl)} is not a candid type`); diff --git a/src/lib_new/visitors/encode_decode/index.ts b/src/lib_new/visitors/encode_decode/index.ts index f24c057c65..33f3e5a842 100644 --- a/src/lib_new/visitors/encode_decode/index.ts +++ b/src/lib_new/visitors/encode_decode/index.ts @@ -149,8 +149,5 @@ export function visitRec( ty: IDL.ConstructType, data: VisitorData ): VisitorResult { - // return data.js_data; - // TODO I imagine that this will be the spot of much torment when we get - // to doing actual recursive types, maybe return ty.accept(visitor, data); }