Skip to content

Commit 11062d0

Browse files
committed
removed unused method
1 parent 6030be9 commit 11062d0

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

includes/Services/SiteGenImageService.php

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -204,32 +204,6 @@ public static function update_post_content_with_new_image_urls( $post_id, $url_m
204204
return true; // No changes needed
205205
}
206206

207-
/**
208-
* Get the current status of image processing for a post.
209-
*
210-
* @param int $post_id The post ID to check.
211-
* @return array Status information including processed images and pending tasks.
212-
*/
213-
public static function get_image_processing_status( $post_id ) {
214-
$queue = \NewfoldLabs\WP\Module\Onboarding\TaskManagers\ImageSideloadTaskManager::get_queue();
215-
$stats = \NewfoldLabs\WP\Module\Onboarding\TaskManagers\ImageSideloadTaskManager::get_stats();
216-
217-
$post_tasks = array();
218-
foreach ( $queue as $task ) {
219-
if ( $task['post_id'] === $post_id ) {
220-
$post_tasks[] = $task;
221-
}
222-
}
223-
224-
return array(
225-
'post_id' => $post_id,
226-
'queue_status' => \NewfoldLabs\WP\Module\Onboarding\TaskManagers\ImageSideloadTaskManager::get_status(),
227-
'queue_stats' => $stats,
228-
'post_tasks' => $post_tasks,
229-
'post_task_count' => count( $post_tasks ),
230-
);
231-
}
232-
233207
/**
234208
* Connect to the WordPress filesystem.
235209
*

0 commit comments

Comments
 (0)