chore: refactor code
- remove legacy code - refactor search and add tests
This commit is contained in:
		| @@ -19,10 +19,6 @@ | ||||
|  | ||||
| package config | ||||
|  | ||||
| import ( | ||||
| 	"context" | ||||
| ) | ||||
|  | ||||
| // Paths contains various paths used by ALR | ||||
| type Paths struct { | ||||
| 	ConfigDir  string | ||||
| @@ -32,14 +28,3 @@ type Paths struct { | ||||
| 	PkgsDir    string | ||||
| 	DBPath     string | ||||
| } | ||||
|  | ||||
| // GetPaths returns a Paths struct. | ||||
| // The first time it's called, it'll generate the struct | ||||
| // using information from the system. | ||||
| // Subsequent calls will return the same value. | ||||
| // | ||||
| // Deprecated: use struct API | ||||
| func GetPaths(ctx context.Context) *Paths { | ||||
| 	alrConfig := GetInstance(ctx) | ||||
| 	return alrConfig.GetPaths(ctx) | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user