X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=src%2Fhumanizer.go;h=618f608bb35855ec1751497942e16d5de180bc2e;hb=0367cce2741e1ce6a89a49fd5c4e9df6005c9744;hp=69d1bb5a5ab38eed5b482ca17370d17f1d14f435;hpb=26d25d4822c87a6c89aabf32f273e627b476ef8c;p=nncp.git diff --git a/src/humanizer.go b/src/humanizer.go index 69d1bb5..618f608 100644 --- a/src/humanizer.go +++ b/src/humanizer.go @@ -1,6 +1,6 @@ /* -NNCP -- Node to Node copy -Copyright (C) 2016-2021 Sergey Matveev +NNCP -- Node to Node copy, utilities for store-and-forward data exchange +Copyright (C) 2016-2022 Sergey Matveev This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -25,15 +25,6 @@ import ( "go.cypherpunks.ru/recfile" ) -func (ctx *Ctx) NodeName(id *NodeId) string { - idS := id.String() - node, err := ctx.FindNode(idS) - if err == nil { - return node.Name - } - return idS -} - func (ctx *Ctx) HumanizeRec(rec string) string { r := recfile.NewReader(strings.NewReader(rec)) le, err := r.NextMap()