diff options
author | António Fernandes <antoniof@gnome.org> | 2018-05-13 18:42:36 +0100 |
---|---|---|
committer | António Fernandes <antoniof@gnome.org> | 2018-05-13 23:34:09 +0100 |
commit | 857f65bdb3a88fdac371c71a127f3602b69b3746 (patch) | |
tree | fcd51fe4624c279b636d5504690ab37398d394a0 /src/nautilus-file.c | |
parent | f183d59337b9710f69fbaeda980a125dbef4bc2f (diff) | |
download | nautilus-857f65bdb3a88fdac371c71a127f3602b69b3746.tar.gz |
file: Drop nautilus_file_contains_text
Originally introduced in commit e7aa2e757cfa01d098e1abc90b06f415afe6762a,
this function used to be a lot more complex, but now it is just a
shorthand for nautilus_file_is_mime_type (file, "text/plain").
Its only use was when launching script files on activation.
Diffstat (limited to 'src/nautilus-file.c')
-rw-r--r-- | src/nautilus-file.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/nautilus-file.c b/src/nautilus-file.c index 636891e96..eab7e323c 100644 --- a/src/nautilus-file.c +++ b/src/nautilus-file.c @@ -8170,28 +8170,6 @@ nautilus_file_get_file_info_error (NautilusFile *file) } /** - * nautilus_file_contains_text - * - * Check if this file contains text. - * This is private and is used to decide whether or not to read the top left text. - * @file: NautilusFile representing the file in question. - * - * Returns: TRUE if @file has a text MIME type. - * - **/ -gboolean -nautilus_file_contains_text (NautilusFile *file) -{ - if (file == NULL) - { - return FALSE; - } - - /* All text files inherit from text/plain */ - return nautilus_file_is_mime_type (file, "text/plain"); -} - -/** * nautilus_file_is_executable * * Check if this file is executable at all. |