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