mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	font: remove unused font_buffer_update()
This commit is contained in:
		
							parent
							
								
									70421b1207
								
							
						
					
					
						commit
						6a750d465e
					
				
					 2 changed files with 0 additions and 19 deletions
				
			
		| 
						 | 
				
			
			@ -32,14 +32,6 @@ int font_width(struct font *font, const char *string);
 | 
			
		|||
void font_buffer_create(struct lab_data_buffer **buffer, int max_width,
 | 
			
		||||
	const char *text, struct font *font, float *color, double scale);
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * font_buffer_update - Wrapper around font_buffer_create
 | 
			
		||||
 * Only difference is that if given buffer pointer is != NULL
 | 
			
		||||
 * wlr_buffer_drop() will be called on the buffer.
 | 
			
		||||
 */
 | 
			
		||||
void font_buffer_update(struct lab_data_buffer **buffer, int max_width,
 | 
			
		||||
	const char *text, struct font *font, float *color, double scale);
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * font_finish - free some font related resources
 | 
			
		||||
 * Note: use on exit
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -56,17 +56,6 @@ font_width(struct font *font, const char *string)
 | 
			
		|||
	return rectangle.width;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void
 | 
			
		||||
font_buffer_update(struct lab_data_buffer **buffer, int max_width,
 | 
			
		||||
	const char *text, struct font *font, float *color, double scale)
 | 
			
		||||
{
 | 
			
		||||
	if (*buffer) {
 | 
			
		||||
		wlr_buffer_drop(&(*buffer)->base);
 | 
			
		||||
		*buffer = NULL;
 | 
			
		||||
	}
 | 
			
		||||
	font_buffer_create(buffer, max_width, text, font, color, scale);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void
 | 
			
		||||
font_buffer_create(struct lab_data_buffer **buffer, int max_width,
 | 
			
		||||
	const char *text, struct font *font, float *color, double scale)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue