aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-04-02 06:23:30 +0000
committerGravatar Runxi Yu2026-04-02 06:28:39 +0000
commita041d523de389b65b98a5373a8034041db2a8d83 (patch)
tree7b423dc735f463be616045f2c3c2095a7737aca7 /common
parentresearch: Add dynamic pack resources (diff)
*: Remove
Diffstat (limited to 'common')
-rw-r--r--common/doc.go2
-rw-r--r--common/iowrap/doc.go2
-rw-r--r--common/iowrap/nop_flush.go20
-rw-r--r--common/iowrap/write_flusher.go9
4 files changed, 0 insertions, 33 deletions
diff --git a/common/doc.go b/common/doc.go
deleted file mode 100644
index 1f685411..00000000
--- a/common/doc.go
+++ /dev/null
@@ -1,2 +0,0 @@
-// Package common encapsulates various helper packages not directly related to Git.
-package common
diff --git a/common/iowrap/doc.go b/common/iowrap/doc.go
deleted file mode 100644
index 8e25db16..00000000
--- a/common/iowrap/doc.go
+++ /dev/null
@@ -1,2 +0,0 @@
-// Package iowrap provides small public I/O wrapper interfaces and adapters.
-package iowrap
diff --git a/common/iowrap/nop_flush.go b/common/iowrap/nop_flush.go
deleted file mode 100644
index 38fc5f55..00000000
--- a/common/iowrap/nop_flush.go
+++ /dev/null
@@ -1,20 +0,0 @@
-package iowrap
-
-import "io"
-
-type nopFlusher struct {
- io.Writer
-}
-
-// NopFlush adapts writer into a WriteFlusher with a no-op Flush.
-func NopFlush(writer io.Writer) WriteFlusher {
- if writer == nil {
- return nil
- }
-
- return nopFlusher{Writer: writer}
-}
-
-func (nopFlusher) Flush() error {
- return nil
-}
diff --git a/common/iowrap/write_flusher.go b/common/iowrap/write_flusher.go
deleted file mode 100644
index aaac8724..00000000
--- a/common/iowrap/write_flusher.go
+++ /dev/null
@@ -1,9 +0,0 @@
-package iowrap
-
-import "io"
-
-// WriteFlusher writes bytes and flushes buffered output state.
-type WriteFlusher interface {
- io.Writer
- Flush() error
-}