From e59dbd14f4a8b2edcbaf43d04dd9d69f908bbcc5 Mon Sep 17 00:00:00 2001 From: Aaron Jacobs Date: Mon, 27 Jul 2015 15:42:02 +1000 Subject: [PATCH] Killed methods. --- fuseops/ops.go | 34 ---------------------------------- 1 file changed, 34 deletions(-) diff --git a/fuseops/ops.go b/fuseops/ops.go index 5115a34..d73c42c 100644 --- a/fuseops/ops.go +++ b/fuseops/ops.go @@ -15,7 +15,6 @@ package fuseops import ( - "fmt" "os" "time" ) @@ -48,11 +47,6 @@ type LookUpInodeOp struct { Entry ChildInodeEntry } -func (o *LookUpInodeOp) ShortDesc() (desc string) { - desc = fmt.Sprintf("LookUpInode(parent=%v, name=%q)", o.Parent, o.Name) - return -} - // Refresh the attributes for an inode whose ID was previously returned in a // LookUpInodeOp. The kernel sends this when the FUSE VFS layer's cache of // inode attributes is stale. This is controlled by the AttributesExpiration @@ -68,14 +62,6 @@ type GetInodeAttributesOp struct { AttributesExpiration time.Time } -func (o *GetInodeAttributesOp) DebugString() string { - return fmt.Sprintf( - "Inode: %d, Exp: %v, Attr: %s", - o.Inode, - o.AttributesExpiration, - o.Attributes.DebugString()) -} - // Change attributes for an inode. // // The kernel sends this for obvious cases like chmod(2), and for less obvious @@ -174,11 +160,6 @@ type MkDirOp struct { Entry ChildInodeEntry } -func (o *MkDirOp) ShortDesc() (desc string) { - desc = fmt.Sprintf("MkDir(parent=%v, name=%q)", o.Parent, o.Name) - return -} - // Create a file inode and open it. // // The kernel sends this when the user asks to open a file with the O_CREAT @@ -214,11 +195,6 @@ type CreateFileOp struct { Handle HandleID } -func (o *CreateFileOp) ShortDesc() (desc string) { - desc = fmt.Sprintf("CreateFile(parent=%v, name=%q)", o.Parent, o.Name) - return -} - // Create a symlink inode. If the name already exists, the file system should // return EEXIST (cf. the notes on CreateFileOp and MkDirOp). type CreateSymlinkOp struct { @@ -239,16 +215,6 @@ type CreateSymlinkOp struct { Entry ChildInodeEntry } -func (o *CreateSymlinkOp) ShortDesc() (desc string) { - desc = fmt.Sprintf( - "CreateSymlink(parent=%v, name=%q, target=%q)", - o.Parent, - o.Name, - o.Target) - - return -} - //////////////////////////////////////////////////////////////////////// // Unlinking ////////////////////////////////////////////////////////////////////////