Skip to content

Commit

Permalink
common: delete MakeName (ethereum#27023)
Browse files Browse the repository at this point in the history
common,p2p: remove unused function MakeName
  • Loading branch information
lightclient authored and shekhirin committed Jun 6, 2023
1 parent f9125a6 commit c548f1e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
9 changes: 0 additions & 9 deletions common/path.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,10 @@
package common

import (
"fmt"
"os"
"path/filepath"
"runtime"
)

// MakeName creates a node name that follows the ethereum convention
// for such names. It adds the operation system name and Go runtime version
// the name.
func MakeName(name, version string) string {
return fmt.Sprintf("%s/v%s/%s/%s", name, version, runtime.GOOS, runtime.Version())
}

// FileExist checks if a file exists at filePath.
func FileExist(filePath string) bool {
_, err := os.Stat(filePath)
Expand Down
1 change: 0 additions & 1 deletion p2p/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ type Config struct {
DiscoveryV5 bool `toml:",omitempty"`

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

// BootstrapNodes are used to establish connectivity
Expand Down

0 comments on commit c548f1e

Please sign in to comment.