Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
pwmt
zathura
Commits
fbfbefe1
Commit
fbfbefe1
authored
May 08, 2022
by
Sebastian Ramacher
Browse files
Remove unused code
parent
57f0d79e
Changes
1
Hide whitespace changes
Inline
Side-by-side
zathura/content-type.c
View file @
fbfbefe1
...
...
@@ -81,12 +81,6 @@ guess_type_magic(zathura_content_type_context_t* context, const char* path)
return
content_type
;
}
static
char
*
guess_type_file
(
const
char
*
UNUSED
(
path
))
{
return
NULL
;
}
static
char
*
guess_type_glib
(
const
char
*
path
)
{
...
...
@@ -166,9 +160,8 @@ zathura_content_type_guess(zathura_content_type_context_t* context, const char*
girara_list_find
(
supported_content_types
,
compare_content_types
,
content_type
)
!=
NULL
)
{
return
content_type
;
}
girara_debug
(
"content type '%s' not supported
, trying again
"
,
content_type
);
girara_debug
(
"content type '%s' not supported"
,
content_type
);
g_free
(
content_type
);
}
/* and if libmagic is not available, try file as last resort */
return
guess_type_file
(
path
);
return
NULL
;
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment