cleanup commented code
This commit is contained in:
parent
3ed2b845e0
commit
5dbb87d772
11
app/utils.go
11
app/utils.go
@ -44,14 +44,3 @@ func GetConfig(configPath string) Config {
|
||||
func DeviceBusIDIsSuperDevice(BusID DeviceID) bool {
|
||||
return !strings.ContainsRune(string(BusID), '.')
|
||||
}
|
||||
|
||||
// returns if a device pcie bus id is a subdevice of specified super device
|
||||
//
|
||||
// subsystem devices always has the format xxxx:yy.z, whereas super devices have the format xxxx:yy
|
||||
//
|
||||
// returns true if BusID has prefix SuperDeviceBusID and SuperDeviceBusID is a Super Device
|
||||
/*
|
||||
func DeviceBusIDIsSubDevice(BusID string, SuperDeviceBusID string) bool {
|
||||
return DeviceBusIDIsSuperDevice(SuperDeviceBusID) && strings.HasPrefix(BusID, SuperDeviceBusID)
|
||||
}
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user