Skip to content

Commit a0fabf8

Browse files
committed
Removing unused count api operation.
1 parent d5fdac6 commit a0fabf8

File tree

3 files changed

+2
-38
lines changed

3 files changed

+2
-38
lines changed

intercom/api_operations/count.py

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

intercom/count.py

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,8 @@
11
# -*- coding: utf-8 -*-
2+
"""Count Resource."""
23

34
from intercom.traits.api_resource import Resource
45

56

67
class Count(Resource):
7-
pass
8-
9-
# @classmethod
10-
# def fetch_for_app(cls):
11-
# return Count.find()
12-
13-
# @classmethod
14-
# def do_broken_down_count(cls, entity_to_count, count_context):
15-
# result = cls.fetch_broken_down_count(entity_to_count, count_context)
16-
# return getattr(result, entity_to_count)[count_context]
17-
18-
# @classmethod
19-
# def fetch_broken_down_count(cls, entity_to_count, count_context):
20-
# return Count.find(type=entity_to_count, count=count_context)
8+
"""Collection class for Counts."""

intercom/service/count.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,3 @@ def for_app(self):
1616

1717
def for_type(self, type, count=None):
1818
return self.find(type=type, count=count)
19-
20-
# @classmethod
21-
# def do_broken_down_count(cls, entity_to_count, count_context):
22-
# result = cls.fetch_broken_down_count(entity_to_count, count_context)
23-
# return getattr(result, entity_to_count)[count_context]
24-
25-
# @classmethod
26-
# def fetch_broken_down_count(cls, entity_to_count, count_context):
27-
# return Count.find(type=entity_to_count, count=count_context)

0 commit comments

Comments
 (0)