From 5dbb87d772ecb34f679cdfa9a39c013246f69f7d Mon Sep 17 00:00:00 2001 From: Arthur Lu <root@tronnet.net> Date: Thu, 27 Feb 2025 00:39:55 +0000 Subject: [PATCH] cleanup commented code --- app/utils.go | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/app/utils.go b/app/utils.go index 2c4658d..3ca4afd 100644 --- a/app/utils.go +++ b/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) -} -*/