]> Cypherpunks.ru repositories - nncp.git/blobdiff - src/humanizer.go
Raise copyright years
[nncp.git] / src / humanizer.go
index 69d1bb5a5ab38eed5b482ca17370d17f1d14f435..618f608bb35855ec1751497942e16d5de180bc2e 100644 (file)
@@ -1,6 +1,6 @@
 /*
-NNCP -- Node to Node copy
-Copyright (C) 2016-2021 Sergey Matveev <stargrave@stargrave.org>
+NNCP -- Node to Node copy, utilities for store-and-forward data exchange
+Copyright (C) 2016-2022 Sergey Matveev <stargrave@stargrave.org>
 
 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()