== filebrowser ==

* removed now unused function file_string_width_shortened.
This commit is contained in:
2010-11-14 10:53:49 +00:00
parent 2e84732228
commit 63f131803c
2 changed files with 0 additions and 11 deletions

View File

@@ -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);

View File

@@ -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;