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) const ev = get_tag_event(tag)
if (!ev) if (!ev)
return evs return evs
insert_event_sorted(evs, ev) // for uniqueness
return evs return evs
}, []) }, [])
.forEach((ev, i) => { .forEach((ev, i) => {

View file

@ -30,19 +30,10 @@ function calculate_pow(ev) {
log_warn("calculate_pow deprecated, use event_calculate_pow"); log_warn("calculate_pow deprecated, use event_calculate_pow");
return event_calculate_pow(ev); 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) { function can_reply(ev) {
log_warn("can_reply is deprecated, use event_can_reply"); log_warn("can_reply is deprecated, use event_can_reply");
return event_can_reply(ev); 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) { function passes_spam_filter(contacts, ev, pow) {
log_warn("passes_spam_filter deprecated, use event_is_spam"); log_warn("passes_spam_filter deprecated, use event_is_spam");
return !event_is_spam(ev, contacts, pow); return !event_is_spam(ev, contacts, pow);