From b1c1afa3ccc499df3fd15814d2b6cf9005bc2ab1 Mon Sep 17 00:00:00 2001 From: Jamie Liu Date: Fri, 31 Aug 2018 13:06:16 -0700 Subject: [PATCH] Delete the long-obsolete kernel.TaskMaybe interface. PiperOrigin-RevId: 211131855 Change-Id: Ia7799561ccd65d16269e0ae6f408ab53749bca37 --- pkg/sentry/kernel/task.go | 12 ------------ 1 file changed, 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