Skip to content

Commit

Permalink
[Cleanup] Remove unused File type
Browse files Browse the repository at this point in the history
  • Loading branch information
faec authored Oct 23, 2023
1 parent 1852747 commit 07ad78e
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions filebeat/input/file/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,6 @@ import (
"github.com/elastic/elastic-agent-libs/logp"
)

type File struct {
File *os.File
FileInfo os.FileInfo
Path string
State *State
}

// IsSameFile checks if the given File path corresponds with the FileInfo given
// It is used to check if the file has been renamed.
func IsSameFile(path string, info os.FileInfo) bool {
Expand Down

0 comments on commit 07ad78e

Please sign in to comment.