SF.net SVN: geany: [2034] trunk

eht16 at users.sourceforge.net eht16 at xxxxx
Thu Nov 8 12:46:44 UTC 2007


Revision: 2034
          http://geany.svn.sourceforge.net/geany/?rev=2034&view=rev
Author:   eht16
Date:     2007-11-08 04:46:43 -0800 (Thu, 08 Nov 2007)

Log Message:
-----------
Remove unused unnecessary function utils_btoa().

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/src/editor.c
    trunk/src/utils.c
    trunk/src/utils.h

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2007-11-07 17:57:38 UTC (rev 2033)
+++ trunk/ChangeLog	2007-11-08 12:46:43 UTC (rev 2034)
@@ -1,3 +1,9 @@
+2007-11-08  Enrico Tröger  <enrico(dot)troeger(at)uvena(dot)de>
+
+ * src/editor.c, src/utils.c, src/utils.h:
+   Remove unused unnecessary function utils_btoa().
+
+
 2007-11-07  Enrico Tröger  <enrico(dot)troeger(at)uvena(dot)de>
 
  * src/vte.c: Apply patch from Simone Denei to add a "Restart" item to

Modified: trunk/src/editor.c
===================================================================
--- trunk/src/editor.c	2007-11-07 17:57:38 UTC (rev 2033)
+++ trunk/src/editor.c	2007-11-08 12:46:43 UTC (rev 2034)
@@ -1403,7 +1403,8 @@
 
 static void real_comment_multiline(gint idx, gint line_start, gint last_line)
 {
-	gchar *eol, *str_begin, *str_end;
+	const gchar *eol;
+	gchar *str_begin, *str_end;
 	gint line_len;
 
 	if (idx == -1 || ! doc_list[idx].is_valid || doc_list[idx].file_type == NULL) return;

Modified: trunk/src/utils.c
===================================================================
--- trunk/src/utils.c	2007-11-07 17:57:38 UTC (rev 2033)
+++ trunk/src/utils.c	2007-11-08 12:46:43 UTC (rev 2034)
@@ -257,7 +257,7 @@
 }
 
 
-/**
+/*
  * (stolen from anjuta and modified)
  * Search backward through size bytes looking for a '<', then return the tag if any
  * @return The tag name
@@ -589,7 +589,7 @@
 
 
 /* returns the end-of-line character(s) of the specified editor */
-gchar *utils_get_eol_char(gint idx)
+const gchar *utils_get_eol_char(gint idx)
 {
 	if (idx == -1) return '\0';
 
@@ -603,13 +603,6 @@
 }
 
 
-/* mainly debug function, to get TRUE or FALSE as ascii from a gboolean */
-gchar *utils_btoa(gboolean sbool)
-{
-	return (sbool) ? "TRUE" : "FALSE";
-}
-
-
 gboolean utils_atob(const gchar *str)
 {
 	if (str == NULL) return FALSE;

Modified: trunk/src/utils.h
===================================================================
--- trunk/src/utils.h	2007-11-07 17:57:38 UTC (rev 2033)
+++ trunk/src/utils.h	2007-11-08 12:46:43 UTC (rev 2034)
@@ -55,11 +55,6 @@
 
 gint utils_write_file(const gchar *filename, const gchar *text);
 
-/**
- * (stolen from anjuta and modified)
- * Search backward through size bytes looking for a '<', then return the tag if any
- * @return The tag name
- */
 gchar *utils_find_open_xml_tag(const gchar sel[], gint size, gboolean check_tag);
 
 gboolean utils_check_disk_status(gint idx, gboolean force);
@@ -71,11 +66,8 @@
 gint utils_get_eol_char_len(gint idx);
 
 /* returns the end-of-line character(s) of the specified editor */
-gchar *utils_get_eol_char(gint idx);
+const gchar *utils_get_eol_char(gint idx);
 
-/* mainly debug function, to get TRUE or FALSE as ascii from a gboolean */
-gchar *utils_btoa(gboolean sbool);
-
 gboolean utils_atob(const gchar *str);
 
 gboolean utils_is_absolute_path(const gchar *path);


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list