From 871959c8c9eb88a664b1c7196e00b48b4a485f5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Menrath?= Date: Mon, 2 Sep 2024 14:39:37 +0200 Subject: [PATCH] cleanup unused code --- .../transformer/class-vs-event-list.php | 34 ------------------- 1 file changed, 34 deletions(-) diff --git a/includes/activitypub/transformer/class-vs-event-list.php b/includes/activitypub/transformer/class-vs-event-list.php index 24c2df2..8eb6af3 100644 --- a/includes/activitypub/transformer/class-vs-event-list.php +++ b/includes/activitypub/transformer/class-vs-event-list.php @@ -170,38 +170,4 @@ class VS_Event_List extends Event_Transformer { $summary = "šŸ“ {$address}\nšŸ“… {$start_time_string}\n\n{$excerpt}"; return $summary; } - - // /** - // * Transform the WordPress Object into an ActivityPub Object. - // * - // * @return Activitypub\Activity\Event - // */ - // public function to_object() { - - // $this->ap_object = new Event(); - // $this->ap_object = parent::to_object(); - - // $this - // ->set_content() - // ->set_replies() - // ->set_content_map() - // ->set_attributed_to() - // ->set_published() - // ->set_start_time() - // ->set_end_time() - // ->set_type() - // ->set_category() - // ->set_attachment() - // ->set_comments_enabled( true ) - // ->set_external_participation_url( $this->get_url() ) - // ->set_status( 'CONFIRMED' ) - // ->set_name( get_the_title( $this->wp_object->ID ) ) - // ->set_is_online( false ) - // ->set_in_language( $this->get_locale() ) - // ->set_actor() - // ->set_to( array( 'https://www.w3.org/ns/activitystreams#Public' ) ) - // ->set_location() - // ->set_id(); - // return $this->ap_object; - // } }