[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [33057] trunk/blender/source/blender/ editors/space_file: == filebrowser ==

Andrea Weikert elubie at gmx.net
Sun Nov 14 11:53:52 CET 2010


Revision: 33057
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=33057
Author:   elubie
Date:     2010-11-14 11:53:49 +0100 (Sun, 14 Nov 2010)

Log Message:
-----------
== filebrowser ==
* removed now unused function file_string_width_shortened.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_file/file_intern.h
    trunk/blender/source/blender/editors/space_file/filesel.c

Modified: trunk/blender/source/blender/editors/space_file/file_intern.h
===================================================================
--- trunk/blender/source/blender/editors/space_file/file_intern.h	2010-11-14 10:48:36 UTC (rev 33056)
+++ trunk/blender/source/blender/editors/space_file/file_intern.h	2010-11-14 10:53:49 UTC (rev 33057)
@@ -95,7 +95,6 @@
 /* filesel.c */
 float file_shorten_string(char* string, float w, int front);
 float file_string_width(const char* str);
-float file_string_width_shortened(const char* str, float width);
 
 float file_font_pointsize();
 void file_change_dir(bContext *C, int checkdir);

Modified: trunk/blender/source/blender/editors/space_file/filesel.c
===================================================================
--- trunk/blender/source/blender/editors/space_file/filesel.c	2010-11-14 10:48:36 UTC (rev 33056)
+++ trunk/blender/source/blender/editors/space_file/filesel.c	2010-11-14 10:53:49 UTC (rev 33057)
@@ -346,16 +346,6 @@
 	return BLF_width(style->widget.uifont_id, str);
 }
 
-/* gives the exact width of the string after being shortened to
-   the maximum width. Assumes shortening from the end of the string. */
-float file_string_width_shortened(const char* str, float width)
-{
-	char fname[FILE_MAXFILE];
-
-	BLI_strncpy(fname, str, FILE_MAXFILE);
-	return file_shorten_string(fname, width, 0 );
-}
-
 float file_font_pointsize()
 {
 	float s;





More information about the Bf-blender-cvs mailing list