aboutsummaryrefslogtreecommitdiff
path: root/lib/text/diff/linechanges.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/text/diff/linechanges.go')
-rw-r--r--lib/text/diff/linechanges.go27
1 files changed, 0 insertions, 27 deletions
diff --git a/lib/text/diff/linechanges.go b/lib/text/diff/linechanges.go
deleted file mode 100644
index 5549f568..00000000
--- a/lib/text/diff/linechanges.go
+++ /dev/null
@@ -1,27 +0,0 @@
-// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-FileCopyrightText: 2018 Shulhan <ms@kilabit.info>
-
-package diff
-
-import (
- "git.sr.ht/~shulhan/pakakeh.go/lib/text"
-)
-
-// LineChanges represents a set of change in text.
-type LineChanges []LineChange
-
-// GetAllDels return all deleted chunks.
-func (changes *LineChanges) GetAllDels() (allDels text.Chunks) {
- for _, change := range *changes {
- allDels = append(allDels, change.Dels...)
- }
- return
-}
-
-// GetAllAdds return all addition chunks.
-func (changes *LineChanges) GetAllAdds() (allAdds text.Chunks) {
- for _, change := range *changes {
- allAdds = append(allAdds, change.Adds...)
- }
- return
-}