@@ -60,11 +60,6 @@ func Dir(name string) ([]string, error) {
6060 return directories .AddAndGet (name , result ), nil
6161}
6262
63- // Locale reads the content of a specific locale from static or custom path.
64- func Locale (name string ) ([]byte , error ) {
65- return fileFromDir (path .Join ("locale" , name ))
66- }
67-
6863// WalkLocales reads the content of a specific locale from static or custom path.
6964func WalkLocales (callback func (path , name string , d fs.DirEntry , err error ) error ) error {
7065 if err := walkAssetDir (filepath .Join (setting .StaticRootPath , "options" , "locale" ), callback ); err != nil && ! os .IsNotExist (err ) {
@@ -77,26 +72,6 @@ func WalkLocales(callback func(path, name string, d fs.DirEntry, err error) erro
7772 return nil
7873}
7974
80- // Readme reads the content of a specific readme from static or custom path.
81- func Readme (name string ) ([]byte , error ) {
82- return fileFromDir (path .Join ("readme" , name ))
83- }
84-
85- // Gitignore reads the content of a specific gitignore from static or custom path.
86- func Gitignore (name string ) ([]byte , error ) {
87- return fileFromDir (path .Join ("gitignore" , name ))
88- }
89-
90- // License reads the content of a specific license from static or custom path.
91- func License (name string ) ([]byte , error ) {
92- return fileFromDir (path .Join ("license" , name ))
93- }
94-
95- // Labels reads the content of a specific labels from static or custom path.
96- func Labels (name string ) ([]byte , error ) {
97- return fileFromDir (path .Join ("label" , name ))
98- }
99-
10075// fileFromDir is a helper to read files from static or custom path.
10176func fileFromDir (name string ) ([]byte , error ) {
10277 customPath := path .Join (setting .CustomPath , "options" , name )
0 commit comments