Skip to content

Commit

Permalink
gir-generate/gendata: Drop the unused Package type
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeShu committed Apr 10, 2024
1 parent a1063f0 commit 4769d71
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions gir/cmd/gir-generate/gendata/gendata.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,28 +36,6 @@ var Main = genmain.Data{
SingleFile: true,
}

type Package struct {
PkgName string // pkg-config name
Namespaces []string // refer to ./cmd/gir_namespaces
}

// HasNamespace returns true if the package allows all namespaces or has the
// given namespace in the list.
func (pkg *Package) HasNamespace(n *gir.Namespace) bool {
if pkg.Namespaces == nil {
return true
}

namespace := gir.VersionedNamespace(n)
for _, name := range pkg.Namespaces {
if name == namespace {
return true
}
}

return false
}

// PkgExceptions contains a list of file names that won't be deleted off of
// pkg/.
var PkgExceptions = []string{
Expand Down

0 comments on commit 4769d71

Please sign in to comment.