[gedit/wip/gtkapp: 5/10] Remove unneeded method
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit/wip/gtkapp: 5/10] Remove unneeded method
- Date: Wed, 28 Nov 2012 14:02:19 +0000 (UTC)
commit ae62c69ecdb0cca635ddc0fca6a526537603f0c1
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Tue Jul 31 17:23:15 2012 +0200
Remove unneeded method
gedit/gedit-utils.c | 18 ------------------
gedit/gedit-utils.h | 2 --
2 files changed, 0 insertions(+), 20 deletions(-)
---
diff --git a/gedit/gedit-utils.c b/gedit/gedit-utils.c
index a04c6d1..4f00a60 100644
--- a/gedit/gedit-utils.c
+++ b/gedit/gedit-utils.c
@@ -1540,24 +1540,6 @@ gedit_utils_decode_uri (const gchar *uri,
return TRUE;
}
-gboolean
-gedit_utils_can_read_from_stdin (void)
-{
-#ifdef G_OS_UNIX
- if (!isatty (STDIN_FILENO))
- {
- struct stat sbuffer;
-
- if (fstat (STDIN_FILENO, &sbuffer) == 0 &&
- (S_ISREG (sbuffer.st_mode) || S_ISFIFO (sbuffer.st_mode) || S_ISLNK (sbuffer.st_mode)))
- {
- return TRUE;
- }
- }
-#endif
- return FALSE;
-}
-
GeditDocumentCompressionType
gedit_utils_get_compression_type_from_content_type (const gchar *content_type)
{
diff --git a/gedit/gedit-utils.h b/gedit/gedit-utils.h
index 18bda01..ed647f9 100644
--- a/gedit/gedit-utils.h
+++ b/gedit/gedit-utils.h
@@ -148,8 +148,6 @@ gboolean gedit_utils_decode_uri (const gchar *uri,
/* Turns data from a drop into a list of well formatted uris */
gchar **gedit_utils_drop_get_uris (GtkSelectionData *selection_data);
-gboolean gedit_utils_can_read_from_stdin (void);
-
GeditDocumentCompressionType
gedit_utils_get_compression_type_from_content_type
(const gchar *content_type);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]