pgraph: Move the AutoEdges mechanism into the resource package

Remove the pgraph->resource dependency.
This commit is contained in:
James Shubin
2017-05-15 11:37:20 -04:00
parent 1fbe72b52d
commit 11c3a26c23
3 changed files with 20 additions and 20 deletions

View File

@@ -299,16 +299,6 @@ type BaseRes struct {
// return nil
//}
// UIDExistsInUIDs wraps the IFF method when used with a list of UID's.
func UIDExistsInUIDs(uid ResUID, uids []ResUID) bool {
for _, u := range uids {
if uid.IFF(u) {
return true
}
}
return false
}
// GetName returns the name of the resource.
func (obj *BaseUID) GetName() string {
return obj.Name