Delete the long-obsolete kernel.TaskMaybe interface.
PiperOrigin-RevId: 211131855 Change-Id: Ia7799561ccd65d16269e0ae6f408ab53749bca37
This commit is contained in:
parent
7e18f158b2
commit
b1c1afa3cc
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue