Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Weikert <elubie@gmx.net>2010-11-14 13:53:49 +0300
committerAndrea Weikert <elubie@gmx.net>2010-11-14 13:53:49 +0300
commit63f131803caaf080e947f6087997a6fa43aefa6b (patch)
tree8d5f41f671cd7461ebbf337559dd24686e8ea673 /source/blender/editors/space_file
parent2e84732228c749f4d7932ab3a4fe60c95f7d19ac (diff)
== filebrowser ==
* removed now unused function file_string_width_shortened.
Diffstat (limited to 'source/blender/editors/space_file')
-rw-r--r--source/blender/editors/space_file/file_intern.h1
-rw-r--r--source/blender/editors/space_file/filesel.c10
2 files changed, 0 insertions, 11 deletions
diff --git a/source/blender/editors/space_file/file_intern.h b/source/blender/editors/space_file/file_intern.h
index 0bc9a6e8db8..fc7ab289683 100644
--- a/source/blender/editors/space_file/file_intern.h
+++ b/source/blender/editors/space_file/file_intern.h
@@ -95,7 +95,6 @@ void file_operator_to_sfile(struct SpaceFile *sfile, struct wmOperator *op);
/* 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);
diff --git a/source/blender/editors/space_file/filesel.c b/source/blender/editors/space_file/filesel.c
index af823654b9d..d55fcd7d8ba 100644
--- a/source/blender/editors/space_file/filesel.c
+++ b/source/blender/editors/space_file/filesel.c
@@ -346,16 +346,6 @@ float file_string_width(const char* str)
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;