mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 05:08:08 +02:00
remove unused slang_atom_pool_gen()
This commit is contained in:
parent
308be21c2f
commit
5186ae9bbe
2 changed files with 0 additions and 24 deletions
|
|
@ -219,17 +219,3 @@ slang_atom_pool_id(slang_atom_pool * pool, slang_atom atom)
|
|||
{
|
||||
return (const char *) (atom);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Generate a new, unique atom with given prefix.
|
||||
*/
|
||||
slang_atom
|
||||
slang_atom_pool_gen(slang_atom_pool * pool, const char *prefix)
|
||||
{
|
||||
char name[1000];
|
||||
static int nextFree = 100;
|
||||
sprintf(name, "%s%d", prefix, nextFree);
|
||||
nextFree++;
|
||||
return slang_atom_pool_atom(pool, name);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,9 +25,6 @@
|
|||
#if !defined SLANG_UTILITY_H
|
||||
#define SLANG_UTILITY_H
|
||||
|
||||
#if defined __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* Compile-time assertions. If the expression is zero, try to declare an
|
||||
* array of size [-1] to cause compilation error.
|
||||
|
|
@ -102,13 +99,6 @@ GLvoid slang_atom_pool_destruct (slang_atom_pool *);
|
|||
slang_atom slang_atom_pool_atom (slang_atom_pool *, const char *);
|
||||
const char *slang_atom_pool_id (slang_atom_pool *, slang_atom);
|
||||
|
||||
slang_atom
|
||||
slang_atom_pool_gen(slang_atom_pool * pool, const char *prefix);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue