From dfac20c806303958f3e464d40aa9abc0bcc8b690 Mon Sep 17 00:00:00 2001 From: Ross Light Date: Mon, 25 Jan 2021 20:26:56 -0800 Subject: [PATCH] packfile: remove ReadSeekCloser Used for thin pack but not supported yet. --- packfile/readseekcloser.go | 29 ----------------------------- packfile/readseekcloser_go116.go | 25 ------------------------- 2 files changed, 54 deletions(-) delete mode 100644 packfile/readseekcloser.go delete mode 100644 packfile/readseekcloser_go116.go diff --git a/packfile/readseekcloser.go b/packfile/readseekcloser.go deleted file mode 100644 index ebe9e69..0000000 --- a/packfile/readseekcloser.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright 2021 The gg Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// SPDX-License-Identifier: Apache-2.0 - -//+build !go1.16 - -package packfile - -import "io" - -// ReadSeekCloser is the interface that groups the basic Read, Seek and Close -// methods. -type ReadSeekCloser interface { - io.Reader - io.Seeker - io.Closer -} diff --git a/packfile/readseekcloser_go116.go b/packfile/readseekcloser_go116.go deleted file mode 100644 index 432b702..0000000 --- a/packfile/readseekcloser_go116.go +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright 2021 The gg Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// SPDX-License-Identifier: Apache-2.0 - -//+build go1.16 - -package packfile - -import "io" - -// ReadSeekCloser is the interface that groups the basic Read, Seek and Close -// methods. -type ReadSeekCloser = io.ReadSeekCloser