mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 21:15:32 +09:00
refactor: remove dead code (#3337)
This commit is contained in:
1 parent
a19002652b
commit
93d1f8af46
1527 files changed
+21170
-73846
No files matched your search
@@ -283,20 +283,3 @@ pub async fn metadata_json_with_options(
|
||||
let response = metadata_finalize(prepared, verdict);
|
||||
serde_json::to_string(&response).map_err(|_| MediaError::MediaEncodeFailed)
|
||||
}
|
||||
|
||||
pub async fn metadata_json(
|
||||
input: &[u8],
|
||||
filename: &str,
|
||||
media_limits: &MediaLimits,
|
||||
metrics: &TransformMetrics,
|
||||
) -> Result<String, MediaError> {
|
||||
metadata_json_with_options(
|
||||
input,
|
||||
filename,
|
||||
MetadataOptions::default(),
|
||||
media_limits,
|
||||
&NSFWClient::disabled(),
|
||||
metrics,
|
||||
)
|
||||
.await
|
||||
}
|
||||
@@ -32,7 +32,7 @@ mod tests;
|
||||
pub use av_metadata::{
|
||||
AVMetadata, AVMetadataFrame, AVProbe, NSFW_PREVIEW_MAX_DIMENSION, probe_av_metadata,
|
||||
};
|
||||
pub use metadata::{MetadataOptions, metadata_json, metadata_json_with_options};
|
||||
pub use metadata::{MetadataOptions, metadata_json_with_options};
|
||||
pub use nsfw_processing::encode_static_image_for_nsfw;
|
||||
pub use transform::transform_image;
|
||||
pub use video_thumbnail::{
|
||||
@@ -149,8 +149,6 @@ pub enum MediaError {
|
||||
InvalidImageDimensions,
|
||||
#[error("unsupported media type")]
|
||||
UnsupportedMediaType,
|
||||
#[error("unsupported output format")]
|
||||
UnsupportedOutputFormat,
|
||||
#[error("stream too long")]
|
||||
StreamTooLong,
|
||||
#[error("request timed out")]
|
||||
|
||||
Reference in new issue
Block a user