Commit 36842ef6 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

fuse: drop unused function

Change-Id: Icfae201b99d75b308ad5c4f3c96a0f5800127f62
parent 5b91e8f6
...@@ -10,10 +10,8 @@ import ( ...@@ -10,10 +10,8 @@ import (
"fmt" "fmt"
"log" "log"
"os" "os"
"reflect"
"syscall" "syscall"
"time" "time"
"unsafe"
) )
func (code Status) String() string { func (code Status) String() string {
...@@ -65,15 +63,6 @@ func ToStatus(err error) Status { ...@@ -65,15 +63,6 @@ func ToStatus(err error) Status {
return ENOSYS return ENOSYS
} }
func toSlice(dest *[]byte, ptr unsafe.Pointer, byteCount uintptr) {
h := (*reflect.SliceHeader)(unsafe.Pointer(dest))
*h = reflect.SliceHeader{
Data: uintptr(ptr),
Len: int(byteCount),
Cap: int(byteCount),
}
}
func CurrentOwner() *Owner { func CurrentOwner() *Owner {
return &Owner{ return &Owner{
Uid: uint32(os.Getuid()), Uid: uint32(os.Getuid()),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment