this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

pkg/path: remove unused code

When refactoring cue/load, I noticed that some pieces of code
were unused, which makes it less obvious what kinds of things
can be done. I used `staticcheck` to point out many other
places in the code that are unused.

This is one of those places. I feel it's better to remove this code
even if it might be used in the future (it's always there to be found
in the git history).

Signed-off-by: Roger Peppe <rogpeppe@gmail.com>
Change-Id: I9f0492b476b44de4fc30dc100c44896f3dbe0f9c
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/549286
TryBot-Result: CUEcueckoo <cueckoo+gerrithub@cuelang.org>
Unity-Result: CUEcueckoo <cueckoo+gerrithub@cuelang.org>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>

authored by

Roger Peppe and committed by
Daniel Martí
ab48c0fd b2476bd0

-32
-32
pkg/path/path_test.go
··· 494 494 } 495 495 } 496 496 497 - // // simpleJoin builds a file name from the directory and path. 498 - // // It does not use Join because we don't want ".." to be evaluated. 499 - // func simpleJoin(dir, path string) string { 500 - // return dir + string(Separator) + path 501 - // } 502 - 503 - // Test directories relative to temporary directory. 504 - // The tests are run in absTestDirs[0]. 505 - var absTestDirs = []string{ 506 - "a", 507 - "a/b", 508 - "a/b/c", 509 - } 510 - 511 - // Test paths relative to temporary directory. $ expands to the directory. 512 - // The tests are run in absTestDirs[0]. 513 - // We create absTestDirs first. 514 - var absTests = []string{ 515 - ".", 516 - "b", 517 - "b/", 518 - "../a", 519 - "../a/b", 520 - "../a/b/./c/../../.././a", 521 - "../a/b/./c/../../.././a/", 522 - "$", 523 - "$/.", 524 - "$/a/../a/b", 525 - "$/a/b/c/../../.././a", 526 - "$/a/b/c/../../.././a/", 527 - } 528 - 529 497 type RelTests struct { 530 498 root, path, want string 531 499 }