Skip to content

Commit 38c6241

Browse files
author
Jia He
committed
chore: clean up code
1 parent 6a182ea commit 38c6241

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

fsearch.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -234,16 +234,6 @@ func (fs *FSearch) RenamePath(pathname, newName string) error {
234234
}
235235
}
236236

237-
// nodeIds := nodeIdsVal.([]int64)
238-
// _, err = fs.radix.Insert(keyword, append(nodeIds, node.id))
239-
// if err != nil {
240-
// return err
241-
// }
242-
// }
243-
244-
// for _,
245-
// originalName
246-
247237
return nil
248238
}
249239

@@ -312,7 +302,6 @@ func (fs *FSearch) Marshal() chan string {
312302
func (fs *FSearch) Unmarshal(rows chan string) error {
313303
fs.tree.Unmarshal(rows)
314304

315-
// TODO: restore the radix and nodes?
316305
var keyword string
317306
var err error
318307
var nodeIdsVal interface{}

fsearch_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,6 @@ func TestFSearchOperations(t *testing.T) {
271271
}
272272

273273
func TestFSearchPersistency(t *testing.T) {
274-
// keywordRandStr := randstr.NewRandStr([]string{}, true, 2)
275-
276274
t.Run("test persistency", func(t *testing.T) {
277275
fs := New("/", resultSize)
278276
paths := genPaths(128)

0 commit comments

Comments
 (0)