Remove some dead code
This commit is contained in:
parent
c641e457fd
commit
4af8678c8a
@ -55,14 +55,12 @@ func (c Contacts) CreateContactFolder(
|
||||
return mdl, nil
|
||||
}
|
||||
|
||||
// CreateContactFolder makes a contact folder with the displayName of folderName.
|
||||
// If successful, returns the created folder object.
|
||||
// TODO: Add pagination or just reuse EnumerateContainer logic
|
||||
// with base id at root
|
||||
func (c Contacts) GetContactFolders(
|
||||
ctx context.Context,
|
||||
user string,
|
||||
) (models.ContactFolderCollectionResponseable, error) {
|
||||
// TODO: Add pagination or just reuse EnumerateContainer logic
|
||||
// with base id at root
|
||||
mdl, err := c.Stable.Client().UsersById(user).ContactFolders().Get(ctx, nil)
|
||||
if err != nil {
|
||||
return nil, graph.Wrap(ctx, err, "creating contact folder")
|
||||
|
||||
@ -659,7 +659,6 @@ func establishContactsRestoreLocation(
|
||||
// TODO:: Add status code check too
|
||||
if graph.IsErrFolderExists(err) {
|
||||
result, _ := ac.Contacts().GetContactFolders(ctx, user)
|
||||
//fmt.Println(result.GetValue())
|
||||
}
|
||||
return "", err
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user