| @@ -125,26 +125,8 @@ | ||
| 125 | 125 | return $post_id; |
| 126 | 126 | } |
| 127 | 127 | |
| 128 | 128 | /** |
| 129 | - * Permanently delete the underlying alert post. | |
| 130 | - * | |
| 131 | - * @return bool True if the post was deleted, false otherwise. | |
| 132 | - */ | |
| 133 | - public function delete() { | |
| 134 | - if ( empty( $this->ID ) ) { | |
| 135 | - return false; | |
| 136 | - } | |
| 137 | - | |
| 138 | - $post = get_post( $this->ID ); | |
| 139 | - if ( ! ( $post instanceof \WP_Post ) || Alerts::POST_TYPE !== $post->post_type ) { | |
| 140 | - return false; | |
| 141 | - } | |
| 142 | - | |
| 143 | - return (bool) wp_delete_post( $this->ID, true ); | |
| 144 | - } | |
| 145 | - | |
| 146 | - /** | |
| 147 | 129 | * Process settings form data |
| 148 | 130 | * |
| 149 | 131 | * @todo Confirm if the function is necessary, it's currently unreference |
| 150 | 132 | * anywhere else in the plugin. |