Skip to content

Commit 520a4e2

Browse files
authored
chore: remove incomplete gitlab_project_repository_file resource (#650)
This file was part of #556 but did not include a test, docs, or an entry in gitlab/provider.go, so we are removing it until it can be completed.
1 parent 401790a commit 520a4e2

File tree

2 files changed

+0
-189
lines changed

2 files changed

+0
-189
lines changed

gitlab/resource_gitlab_project_repository_file.go

Lines changed: 0 additions & 174 deletions
This file was deleted.

gitlab/util.go

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -202,21 +202,6 @@ func buildTwoPartID(a, b *string) string {
202202
return fmt.Sprintf("%s:%s", *a, *b)
203203
}
204204

205-
// return the pieces of id `a:b:c` as a, b, c
206-
func parseThreePartID(id string) (string, string, string, error) {
207-
parts := strings.SplitN(id, ":", 3)
208-
if len(parts) != 3 {
209-
return "", "", "", fmt.Errorf("Unexpected ID format (%q). Expected project:key", id)
210-
}
211-
212-
return parts[0], parts[1], parts[2], nil
213-
}
214-
215-
// format the strings into an id `a:b:c`
216-
func buildThreePartID(a, b, c *string) string {
217-
return fmt.Sprintf("%s:%s:%s", *a, *b, *c)
218-
}
219-
220205
var accessLevelID = map[string]gitlab.AccessLevelValue{
221206
"no one": gitlab.NoPermissions,
222207
"guest": gitlab.GuestPermissions,

0 commit comments

Comments
 (0)