Skip to content

Commit

Permalink
fix(lint): address unused code
Browse files Browse the repository at this point in the history
GitHub-Fixes: #413

Signed-off-by: Antoine Cotten <antoine@unikraft.io>
  • Loading branch information
antoineco committed Apr 28, 2023
1 parent 8d4f1a1 commit 020202f
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 176 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/gochecks.yaml
Expand Up @@ -42,6 +42,9 @@ jobs:
sudo apt-get install -y --no-install-recommends \
cmake
- name: Install libgit2/git2go
run: make git2go

- name: Check that go.mod is tidy
uses: protocol/multiple-go-modules@v1.2
with:
Expand Down
2 changes: 2 additions & 0 deletions .golangci.yaml
Expand Up @@ -8,6 +8,8 @@ run:
# Temporarily ignore the file which uses libgit2 dependency since this will
# fail on the static check.
- manifest/pack_pull_git.go
build-tags:
- static

linters:
disable-all: true
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Expand Up @@ -55,7 +55,6 @@ require (
github.com/xlab/treeprint v1.2.0
golang.org/x/oauth2 v0.6.0
golang.org/x/sync v0.1.0
golang.org/x/sys v0.7.0
golang.org/x/term v0.7.0
gopkg.in/yaml.v2 v2.4.0
gopkg.in/yaml.v3 v3.0.1
Expand Down Expand Up @@ -162,6 +161,7 @@ require (
golang.org/x/crypto v0.6.0 // indirect
golang.org/x/mod v0.9.0 // indirect
golang.org/x/net v0.8.0 // indirect
golang.org/x/sys v0.7.0 // indirect
golang.org/x/text v0.8.0 // indirect
golang.org/x/tools v0.7.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
Expand Down
39 changes: 0 additions & 39 deletions iostreams/console.go

This file was deleted.

53 changes: 0 additions & 53 deletions iostreams/console_windows.go

This file was deleted.

42 changes: 0 additions & 42 deletions iostreams/tty_size.go

This file was deleted.

38 changes: 0 additions & 38 deletions iostreams/tty_size_windows.go

This file was deleted.

12 changes: 9 additions & 3 deletions unikraft/lib/library.go
Expand Up @@ -79,25 +79,31 @@ type LibraryConfig struct {
// ultimately handled by the packmanager).
source string

// TODO(nderjung): future implementation
// origin contains the URL of the remote source code if this library wraps an
// existing library.
origin string
//nolint:gofumpt
//origin string

// list of kconfig values specific to this library.
kconfig kconfig.KeyValueMap

// kname the kconfig name which enables this library.
kname string

// TODO(nderjung): future implementation
// projectdir is the root location of the project that this library is a
// member of.
projectdir string
//nolint:gofumpt
//projectdir string

// path is the location to this library within the context of a project.
path string

// TODO(nderjung): future implementation
// patchdir is the directory where patches to the origin library are kept.
patchdir string
//nolint:gofumpt
//patchdir string

// exportsyms contains the list of exported symbols the library makes
// available via the standard `exportsyms.uk` file.
Expand Down

0 comments on commit 020202f

Please sign in to comment.