func removeRelations(data [][]string, appName string) [][]string {
	var result [][]string
	for _, relation := range data {
		// Keep the dud relation in the set, it will be caught by the bundle
		// verify code.
		if len(relation) == 2 {
			left, right := relation[0], relation[1]
			if left == appName || strings.HasPrefix(left, appName+":") ||
				right == appName || strings.HasPrefix(right, appName+":") {
				continue
			}
		}
		result = append(result, relation)
	}
	return result
}
// removeRelations removes any relation defined in data that references
// the application appName.
removeRelations removes any relation defined in data that references
the application appName.
// removeRelations removes any relation defined in data that references // the application appName .
func removeRelations(data [][]string, appName string) [][]string {
	var result [][]string
	for _, relation := range data {
		if len(relation) == 2 {
			left, right := relation[0], relation[1]
			if left == appName || strings.HasPrefix(left, appName+":") ||
				right == appName || strings.HasPrefix(right, appName+":") {
				continue
			}
		}
		result = append(result, relation)
	}
	return result
}
func removeRelations ( data [ ] [ ] string , appName string ) [ ] [ ] string { var result [ ] [ ] string for _ , relation := range data { if len ( relation ) == 2 { left , right := relation [ 0 ] , relation [ 1 ] if left == appName || strings . HasPrefix ( left , appName + " " ) || right == appName || strings . HasPrefix ( right , appName + " " ) { continue } } result = append ( result , relation ) } return result }
removeRelations removes any relation defined in data that references
the application appName.
removeRelations removes any relation defined in data that references the application appName .
// Keep the dud relation in the set, it will be caught by the bundle // verify code.