From ddef7f8078ba87ae2c73c6b89668e01d1da76cfe Mon Sep 17 00:00:00 2001 From: Kevin Date: Thu, 11 Jul 2019 21:31:26 -0700 Subject: Fix license year and remove Read. --- pkg/sentry/fs/dev/tty.go | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'pkg') diff --git a/pkg/sentry/fs/dev/tty.go b/pkg/sentry/fs/dev/tty.go index e1e4fa2cf..b4c2a62fd 100644 --- a/pkg/sentry/fs/dev/tty.go +++ b/pkg/sentry/fs/dev/tty.go @@ -1,4 +1,4 @@ -// Copyright 2018 The gVisor Authors. +// Copyright 2019 The gVisor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,12 +16,9 @@ package dev import ( "gvisor.dev/gvisor/pkg/abi/linux" - "gvisor.dev/gvisor/pkg/rand" "gvisor.dev/gvisor/pkg/sentry/context" "gvisor.dev/gvisor/pkg/sentry/fs" "gvisor.dev/gvisor/pkg/sentry/fs/fsutil" - "gvisor.dev/gvisor/pkg/sentry/safemem" - "gvisor.dev/gvisor/pkg/sentry/usermem" "gvisor.dev/gvisor/pkg/waiter" ) @@ -72,8 +69,3 @@ type ttyFileOperations struct { } var _ fs.FileOperations = (*ttyFileOperations)(nil) - -// Read implements fs.FileOperations.Read. -func (*ttyFileOperations) Read(ctx context.Context, _ *fs.File, dst usermem.IOSequence, _ int64) (int64, error) { - return dst.CopyOutFrom(ctx, safemem.FromIOReader{rand.Reader}) -} -- cgit v1.2.3