Skip to content

Commit 5411839

Browse files
authored
Merge pull request #85 from reddit/cleanup
Remove unused functions
2 parents 46598e5 + dc34ef9 commit 5411839

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

reddit_decider/__init__.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -190,28 +190,6 @@ def _get_ctx(self) -> Any:
190190
context_fields = self._decider_context.to_dict()
191191
return make_ctx(context_fields)
192192

193-
def _get_ctx_with_set_identifier(
194-
self, identifier: str, identifier_type: Literal["user_id", "device_id", "canonical_url"]
195-
) -> Dict[str, Any]:
196-
context_fields = self._decider_context.to_dict()
197-
context_fields[identifier_type] = identifier
198-
199-
return make_ctx(context_fields)
200-
201-
def _format_decision(self, decision_dict: Dict[str, str]) -> Dict[str, Any]:
202-
out = {}
203-
# cast id to int
204-
for k, v in decision_dict.items():
205-
if k == "id":
206-
try:
207-
out[k] = int(v)
208-
except ValueError:
209-
out[k] = v # type: ignore
210-
else:
211-
out[k] = v # type: ignore
212-
213-
return out
214-
215193
def _send_expose(self, event: str, exposure_fields: dict) -> None:
216194
event_fields = deepcopy(exposure_fields)
217195
try:

0 commit comments

Comments
 (0)