summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/kernel/task.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/sentry/kernel/task.go')
-rw-r--r--pkg/sentry/kernel/task.go12
1 files changed, 0 insertions, 12 deletions
diff --git a/pkg/sentry/kernel/task.go b/pkg/sentry/kernel/task.go
index 0f83c0a39..21be3120e 100644
--- a/pkg/sentry/kernel/task.go
+++ b/pkg/sentry/kernel/task.go
@@ -499,13 +499,6 @@ func (t *Task) afterLoad() {
// struct.
const copyScratchBufferLen = 52
-// TaskMaybe is the interface for extracting Tasks out of things which may be
-// or contain Task objects.
-type TaskMaybe interface {
- // ExtractTask returns the Task.
- ExtractTask() *Task
-}
-
// CopyScratchBuffer returns a scratch buffer to be used in CopyIn/CopyOut
// functions. It must only be used within those functions and can only be used
// by the task goroutine; it exists to improve performance and thus
@@ -525,11 +518,6 @@ func (t *Task) FutexWaiter() *futex.Waiter {
return t.futexWaiter
}
-// ExtractTask implements TaskMaybe.ExtractTask.
-func (t *Task) ExtractTask() *Task {
- return t
-}
-
// TaskContext returns t's TaskContext.
//
// Precondition: The caller must be running on the task goroutine, or t.mu must