summaryrefslogtreecommitdiffstats
path: root/src/glsl/ast.h
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2014-11-10 14:23:27 -0800
committerMatt Turner <mattst88@gmail.com>2014-11-24 14:06:39 -0800
commit803a7445076d0c521ca86ed722b702a6e4181786 (patch)
treed98e8a27b87f0fac29fe5979ed27c1b010230316 /src/glsl/ast.h
parentbaff470823e5785f7ac357408bae9e8b17191e47 (diff)
downloadexternal_mesa3d-803a7445076d0c521ca86ed722b702a6e4181786.zip
external_mesa3d-803a7445076d0c521ca86ed722b702a6e4181786.tar.gz
external_mesa3d-803a7445076d0c521ca86ed722b702a6e4181786.tar.bz2
glsl: Remove unused ast copy constructors.
These were added in commits a760c738 and 43757135 to be used in implementing C-style aggregate initializers (commit 1b0d6aef). Paul rewrote that code in commit 0da1a2cc to use GLSL types, rather than AST types, leaving these copy constructors unused. Tested by making them private and providing no definition.
Diffstat (limited to 'src/glsl/ast.h')
-rw-r--r--src/glsl/ast.h29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/glsl/ast.h b/src/glsl/ast.h
index 15bf086..6995ae8 100644
--- a/src/glsl/ast.h
+++ b/src/glsl/ast.h
@@ -640,19 +640,6 @@ class ast_declarator_list;
class ast_struct_specifier : public ast_node {
public:
- /**
- * \brief Make a shallow copy of an ast_struct_specifier.
- *
- * Use only if the objects are allocated from the same context and will not
- * be modified. Zeros the inherited ast_node's fields.
- */
- ast_struct_specifier(const ast_struct_specifier& that):
- ast_node(), name(that.name), declarations(that.declarations),
- is_declaration(that.is_declaration)
- {
- /* empty */
- }
-
ast_struct_specifier(const char *identifier,
ast_declarator_list *declarator_list);
virtual void print(void) const;
@@ -670,22 +657,6 @@ public:
class ast_type_specifier : public ast_node {
public:
- /**
- * \brief Make a shallow copy of an ast_type_specifier, specifying array
- * fields.
- *
- * Use only if the objects are allocated from the same context and will not
- * be modified. Zeros the inherited ast_node's fields.
- */
- ast_type_specifier(const ast_type_specifier *that,
- ast_array_specifier *array_specifier)
- : ast_node(), type_name(that->type_name), structure(that->structure),
- array_specifier(array_specifier),
- default_precision(that->default_precision)
- {
- /* empty */
- }
-
/** Construct a type specifier from a type name */
ast_type_specifier(const char *name)
: type_name(name), structure(NULL), array_specifier(NULL),