[gedit/wip/gtkapp: 37/38] Remove unneeded method
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit/wip/gtkapp: 37/38] Remove unneeded method
- Date: Sat, 10 Nov 2012 10:26:18 +0000 (UTC)
commit e5ff3800ffdb27284f8991bd0d42dbde93bddc8c
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]