Removed old methods

This commit is contained in:
Thomas Mathews 2022-12-26 11:38:01 -08:00
parent ef57392834
commit 6430640ec7
2 changed files with 0 additions and 10 deletions

View file

@ -46,7 +46,6 @@ async function broadcast_related_events(ev) {
const ev = get_tag_event(tag)
if (!ev)
return evs
insert_event_sorted(evs, ev) // for uniqueness
return evs
}, [])
.forEach((ev, i) => {

View file

@ -30,19 +30,10 @@ function calculate_pow(ev) {
log_warn("calculate_pow deprecated, use event_calculate_pow");
return event_calculate_pow(ev);
}
function insert_event_sorted(evs, new_ev) {
log_warn("insert_event_sorted deprecated, use events_insert_sorted");
events_insert_sorted(evs, new_ev);
}
function can_reply(ev) {
log_warn("can_reply is deprecated, use event_can_reply");
return event_can_reply(ev);
}
function should_add_to_timeline(ev) {
// TODO rename should_add_to_timeline to is_timeline_event
log_warn("should_add_to_timeline is deprecated, use event_is_timeline");
return event_is_timeline(ev);
}
function passes_spam_filter(contacts, ev, pow) {
log_warn("passes_spam_filter deprecated, use event_is_spam");
return !event_is_spam(ev, contacts, pow);