From ff06adf43120aba8fe86195aaaab6cd609552df1 Mon Sep 17 00:00:00 2001 From: Aaron Jacobs Date: Mon, 27 Jul 2015 14:24:45 +1000 Subject: [PATCH] Trimmed the Op interface. --- fuseops/ops.go | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/fuseops/ops.go b/fuseops/ops.go index f1c3d27..11d9271 100644 --- a/fuseops/ops.go +++ b/fuseops/ops.go @@ -20,7 +20,6 @@ import ( "time" "github.com/jacobsa/fuse/internal/fusekernel" - "golang.org/x/net/context" ) // A common interface implemented by all ops in this package. Use a type switch @@ -32,22 +31,6 @@ type Op interface { // A long description of the op, to be used in debug logging. DebugString() string - - // A context that can be used for long-running operations. - Context() context.Context - - // Repond to the operation with the supplied error. If there is no error, set - // any necessary output fields and then call Respond(nil). The user must not - // call with a nil error for unrecognized ops; instead, use ENOSYS. - // - // Once this is invoked, the user must exclude any further calls to any - // method of this op. - Respond(error) - - // Log information tied to this operation, with semantics equivalent to - // log.Printf, except that the format is different and logging is suppressed - // if no debug logger was set when mounting. - Logf(format string, v ...interface{}) } ////////////////////////////////////////////////////////////////////////