Skip to content

Commit ed96dd0

Browse files
committed
fix: remove dead dnslink code
1 parent d2c690c commit ed96dd0

File tree

2 files changed

+1
-60
lines changed

2 files changed

+1
-60
lines changed

dnslinkgen.go

-39
This file was deleted.

tooling/dnslink/merge.go

+1-21
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"encoding/json"
55
"fmt"
66
"os"
7-
"strings"
87
)
98

109
func Aggregate(inputPaths []string) (map[string]string, error) {
@@ -41,23 +40,4 @@ func Merge(inputPaths []string, outputPath string) error {
4140

4241
err = os.WriteFile(outputPath, j, 0644)
4342
return err
44-
}
45-
46-
func AsEnv(inputPaths []string, outputPath string) error {
47-
kvs, err := Aggregate(inputPaths)
48-
if err != nil {
49-
return err
50-
}
51-
52-
var kvsStr []string
53-
for k, v := range kvs {
54-
kvsStr = append(kvsStr, fmt.Sprintf("%s:%s", k, v))
55-
}
56-
57-
env := strings.Join(kvsStr, ",")
58-
env = "export IPFS_NS_MAP=\"" + env + "\""
59-
60-
err = os.WriteFile(outputPath, []byte(env), 0644)
61-
62-
return err
63-
}
43+
}

0 commit comments

Comments
 (0)