mirror of
https://github.com/lovell/sharp.git
synced 2025-07-11 03:20:13 +02:00
Remove redundant TIFF warning handler setup (#4422)
This became redundant after commit libvips/libvips@22994d9.
This commit is contained in:
parent
276ac2df8d
commit
6cde18d443
@ -18,10 +18,8 @@ Napi::Object init(Napi::Env env, Napi::Object exports) {
|
||||
vips_init("sharp");
|
||||
});
|
||||
|
||||
for (auto domain : { "VIPS", "vips2tiff" }) {
|
||||
g_log_set_handler(domain, static_cast<GLogLevelFlags>(G_LOG_LEVEL_WARNING),
|
||||
g_log_set_handler("VIPS", static_cast<GLogLevelFlags>(G_LOG_LEVEL_WARNING),
|
||||
static_cast<GLogFunc>(sharp::VipsWarningCallback), nullptr);
|
||||
}
|
||||
|
||||
// Methods available to JavaScript
|
||||
exports.Set("metadata", Napi::Function::New(env, metadata));
|
||||
|
Loading…
x
Reference in New Issue
Block a user