Removed unused function

Signed-off-by: Vaibhav Sharma <17532va@gmail.com>
pull/11701/head
Vaibhav Sharma 3 years ago
parent 5baebe19a7
commit 6dfa9d7eed

@ -400,7 +400,6 @@ func (s *Server) Stop() {
// URL returns the URL of the server.
//
// Example:
//
// http://localhost:1776
func (s *Server) URL() string {
return s.srv.URL
@ -424,15 +423,3 @@ func setTestingRepository(url, fname string) error {
})
return r.WriteFile(fname, 0644)
}
// setTestingRepository sets up a testing repository.yaml with the given URLs.
func setTestingRepositories(urls []string, fname string) error {
r := repo.NewFile()
for _, url := range urls {
r.Add(&repo.Entry{
Name: "test",
URL: url,
})
}
return r.WriteFile(fname, 0644)
}

Loading…
Cancel
Save