Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{,x-pack/}packetbeat: remove dead code and unused fields, vars, consts and comments #30489

Merged
merged 2 commits into from
Feb 22, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Merge branch 'master' into gardenlintpacket
  • Loading branch information
efd6 committed Feb 22, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 45526e74fc4e22991b275b3be6ec20dec25f1a8b
4 changes: 3 additions & 1 deletion packetbeat/npcap/npcap_other.go
Original file line number Diff line number Diff line change
@@ -20,4 +20,6 @@

package npcap

func reloadWinPCAP() error { return nil }
func loadWinPCAP() error { return nil }

func unloadWinPCAP() error { return nil }
10 changes: 3 additions & 7 deletions packetbeat/npcap/npcap_windows.go
Original file line number Diff line number Diff line change
@@ -22,10 +22,6 @@ package npcap

import "github.com/google/gopacket/pcap"

func reloadWinPCAP() error {
err := pcap.UnloadWinPCAP()
if err != nil {
return err
}
return pcap.LoadWinPCAP()
}
func loadWinPCAP() error { return pcap.LoadWinPCAP() }

func unloadWinPCAP() error { return pcap.UnloadWinPCAP() }
You are viewing a condensed version of this merge commit. You can view the full changes here.