summaryrefslogtreecommitdiffhomepage
path: root/pkg
diff options
context:
space:
mode:
authorJamie Liu <jamieliu@google.com>2018-08-31 13:06:16 -0700
committerShentubot <shentubot@google.com>2018-08-31 13:07:34 -0700
commitb1c1afa3ccc499df3fd15814d2b6cf9005bc2ab1 (patch)
treecabe3477d97115533c287e9f1008d734ed7d518f /pkg
parent7e18f158b2ea87b7f06f8e0b91e10558b4f52722 (diff)
Delete the long-obsolete kernel.TaskMaybe interface.
PiperOrigin-RevId: 211131855 Change-Id: Ia7799561ccd65d16269e0ae6f408ab53749bca37
Diffstat (limited to 'pkg')
-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