Remove some dead code

This commit is contained in:
Abhishek Pandey 2023-05-01 20:51:49 -07:00
parent c641e457fd
commit 4af8678c8a
2 changed files with 2 additions and 5 deletions

View File

@ -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")

View File

@ -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
}