Skip to content

Commit 2c57984

Browse files
authored
common: delete MakeName (#27023)
common,p2p: remove unused function MakeName
1 parent dc2f4b9 commit 2c57984

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

common/path.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,10 @@
1717
package common
1818

1919
import (
20-
"fmt"
2120
"os"
2221
"path/filepath"
23-
"runtime"
2422
)
2523

26-
// MakeName creates a node name that follows the ethereum convention
27-
// for such names. It adds the operation system name and Go runtime version
28-
// the name.
29-
func MakeName(name, version string) string {
30-
return fmt.Sprintf("%s/v%s/%s/%s", name, version, runtime.GOOS, runtime.Version())
31-
}
32-
3324
// FileExist checks if a file exists at filePath.
3425
func FileExist(filePath string) bool {
3526
_, err := os.Stat(filePath)

p2p/server.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ type Config struct {
9494
DiscoveryV5 bool `toml:",omitempty"`
9595

9696
// Name sets the node name of this server.
97-
// Use common.MakeName to create a name that follows existing conventions.
9897
Name string `toml:"-"`
9998

10099
// BootstrapNodes are used to establish connectivity

0 commit comments

Comments
 (0)