From 3ab778b49c7689ba80131894036a88e09a5f3285 Mon Sep 17 00:00:00 2001 From: Zed Date: Sun, 16 Jan 2022 06:34:38 +0100 Subject: [PATCH] Remove old parseUserShow proc --- src/parser.nim | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/parser.nim b/src/parser.nim index 011798f..0991091 100644 --- a/src/parser.nim +++ b/src/parser.nim @@ -26,21 +26,6 @@ proc parseProfile(js: JsonNode; id=""): Profile = result.expandProfileEntities(js) -proc parseUserShow*(js: JsonNode; username=""; id=""): Profile = - if id.len > 0: - result = Profile(id: id) - else: - result = Profile(username: username) - - if js.isNull: return - - with error, js{"errors"}: - if error.getError == suspended: - result.suspended = true - return - - result = parseProfile(js) - proc parseGraphList*(js: JsonNode): List = if js.isNull: return