Skip to content

Commit bb88906

Browse files
committed
remove unused function
1 parent c82223e commit bb88906

1 file changed

Lines changed: 0 additions & 19 deletions

File tree

inc/Helpers/Misc.php

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -75,25 +75,6 @@ function get_file_detail( string $file_name, string $file_ext, string $file_size
7575
return implode( '', $details );
7676
}
7777

78-
/**
79-
* Get mime type
80-
*
81-
* @param int $file_id
82-
*
83-
* @return string
84-
*/
85-
function get_mime_type( int $file_id ) {
86-
$mime_type = (string) get_post_mime_type( $file_id );
87-
88-
if ( empty( $mime_type ) ) {
89-
return '';
90-
}
91-
92-
$mime_type = explode( '/', $mime_type );
93-
94-
return end( $mime_type );
95-
}
96-
9778
/**
9879
* Get accessible file size label
9980
*

0 commit comments

Comments
 (0)