@@ -21,22 +21,12 @@ type repositorySymlinkNode struct {
2121 source types.RepositorySource
2222}
2323
24- // type repositoryLoopbackNode struct {
25- // *fs.LoopbackNode
26- // param *FSParam
27-
28- // source types.RepositorySource
29- // }
30-
3124// Ensure we are implementing the NodeReadlinker interface
3225var _ = (fs .NodeReadlinker )((* repositorySymlinkNode )(nil ))
3326
3427// Ensure we are implementing the NodeGetattrer interface
3528var _ = (fs .NodeGetattrer )((* repositorySymlinkNode )(nil ))
3629
37- // Ensure we are implementing the NodeGetattrer interface
38- // var _ = (fs.NodeWrapChilder)((*repositoryLoopbackNode)(nil))
39-
4030func newRepositoryNodeFromSource (ctx context.Context , source types.RepositorySource , param * FSParam ) (fs.InodeEmbedder , error ) {
4131 if param .UseSymlinks {
4232 return & repositorySymlinkNode {
@@ -48,17 +38,6 @@ func newRepositoryNodeFromSource(ctx context.Context, source types.RepositorySou
4838 if err != nil {
4939 return nil , fmt .Errorf ("failed to fetch local repository path: %w" , err )
5040 }
51- // var st syscall.Stat_t
52- // err := syscall.Stat(localRepositoryPath, &st)
53- // rootData := &fs.LoopbackRoot{
54- // Path: localRepositoryPath,
55- // Dev: st.Dev,
56- // }
57- // rootNode := &fs.LoopbackNode{
58- // RootData: rootData,
59- // }
60- // rootData.RootNode = rootNode
61- // return rootNode, nil
6241 return fs .NewLoopbackRoot (localRepositoryPath )
6342 }
6443}
@@ -85,12 +64,3 @@ func (n *repositorySymlinkNode) Getattr(ctx context.Context, fh fs.FileHandle, o
8564 out .Ctime = uint64 (n .source .GetLastModified ().Unix ())
8665 return 0
8766}
88-
89- // func (n *repositoryLoopbackNode) WrapChild(ctx context.Context, ops fs.InodeEmbedder) fs.InodeEmbedder {
90- // return &repositoryLoopbackNode{
91- // LoopbackNode: ops.(*fs.LoopbackNode),
92-
93- // param: n.param,
94- // source: n.source,
95- // }
96- // }
0 commit comments