Skip to content

Commit

Permalink
unused imports
Browse files Browse the repository at this point in the history
Signed-off-by: Cédric Neukom <github@webguy.ch>
  • Loading branch information
Cédric Neukom committed Aug 15, 2022
1 parent 3586027 commit b4fadcc
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 15 deletions.
11 changes: 0 additions & 11 deletions src/services/caldavService.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,16 +183,6 @@ const createSubscription = async (displayName, color, source, order) => {
return getCalendarHome().createSubscribedCollection(displayName, color, source, order)
}

/**
* Enables the birthday calendar
*
* @return {Promise<Calendar>}
*/
const enableBirthdayCalendar = async () => {
await getCalendarHome().enableBirthdayCalendar()
return getBirthdayCalendar()
}

/**
* Gets the birthday calendar
*
Expand Down Expand Up @@ -255,7 +245,6 @@ export {
findSchedulingOutbox,
createCalendar,
createSubscription,
enableBirthdayCalendar,
getBirthdayCalendar,
getCurrentUserPrincipal,
principalPropertySearchByDisplaynameOrEmail,
Expand Down
2 changes: 0 additions & 2 deletions src/store/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
import { enableBirthdayCalendar } from '../services/caldavService.js'
import { mapDavCollectionToCalendar } from '../models/calendar'
import { detectTimezone } from '../services/timezoneDetectionService'
import { setConfig as setCalendarJsConfig } from '@nextcloud/calendar-js'
import { setConfig } from '../services/settings.js'
Expand Down
2 changes: 0 additions & 2 deletions tests/javascript/unit/store/settings.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
*
*/
import settingsStore from '../../../../src/store/settings.js'
import { enableBirthdayCalendar } from '../../../../src/services/caldavService.js'
import { mapDavCollectionToCalendar } from '../../../../src/models/calendar.js'
import { detectTimezone } from '../../../../src/services/timezoneDetectionService.js'
import { setConfig as setCalendarJsConfig } from '@nextcloud/calendar-js'
Expand All @@ -37,7 +36,6 @@ jest.mock('../../../../src/utils/logger.js')
describe('store/settings test suite', () => {

beforeEach(() => {
enableBirthdayCalendar.mockClear()
mapDavCollectionToCalendar.mockClear()
detectTimezone.mockClear()
setCalendarJsConfig.mockClear()
Expand Down

0 comments on commit b4fadcc

Please sign in to comment.