Commit 703cdd60 by Jamie Madill Committed by Shannon Woods

Delete dead code for cloning various types.

R=kbr@chromium.org Review URL: https://codereview.appspot.com/9242043 git-svn-id: https://angleproject.googlecode.com/svn/trunk@2197 736b8ea6-26fd-11df-bfd4-992fa37f6226 TRAC #23333 Authored-by: alokp@chromium.org Signed-off-by: Shannon Woods Signed-off-by Nicolas Capens Merged-by: Jamie Madill
parent 9e73b210
...@@ -18,8 +18,6 @@ ...@@ -18,8 +18,6 @@
#include <stdio.h> #include <stdio.h>
#include <algorithm> #include <algorithm>
#include "common/angleutils.h"
int TSymbolTableLevel::uniqueId = 0; int TSymbolTableLevel::uniqueId = 0;
TType::TType(const TPublicType &p) : TType::TType(const TPublicType &p) :
......
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
#include <assert.h> #include <assert.h>
#include "common/angleutils.h"
#include "compiler/InfoSink.h" #include "compiler/InfoSink.h"
#include "compiler/intermediate.h" #include "compiler/intermediate.h"
...@@ -50,9 +51,9 @@ public: ...@@ -50,9 +51,9 @@ public:
void setUniqueId(int id) { uniqueId = id; } void setUniqueId(int id) { uniqueId = id; }
int getUniqueId() const { return uniqueId; } int getUniqueId() const { return uniqueId; }
TSymbol(const TSymbol&); private:
DISALLOW_COPY_AND_ASSIGN(TSymbol);
protected:
const TString *name; const TString *name;
unsigned int uniqueId; // For real comparing during code generation unsigned int uniqueId; // For real comparing during code generation
}; };
...@@ -98,7 +99,9 @@ public: ...@@ -98,7 +99,9 @@ public:
unionArray = constArray; unionArray = constArray;
} }
protected: private:
DISALLOW_COPY_AND_ASSIGN(TVariable);
TType type; TType type;
bool userType; bool userType;
// we are assuming that Pool Allocator will free the memory allocated to unionArray // we are assuming that Pool Allocator will free the memory allocated to unionArray
...@@ -162,7 +165,9 @@ public: ...@@ -162,7 +165,9 @@ public:
size_t getParamCount() const { return parameters.size(); } size_t getParamCount() const { return parameters.size(); }
const TParameter& getParam(size_t i) const { return parameters[i]; } const TParameter& getParam(size_t i) const { return parameters[i]; }
protected: private:
DISALLOW_COPY_AND_ASSIGN(TFunction);
typedef TVector<TParameter> TParamList; typedef TVector<TParameter> TParamList;
TParamList parameters; TParamList parameters;
TType returnType; TType returnType;
......
...@@ -241,7 +241,7 @@ public: ...@@ -241,7 +241,7 @@ public:
bool isStructureContainingArrays() const; bool isStructureContainingArrays() const;
protected: private:
void buildMangledName(TString&); void buildMangledName(TString&);
int getStructSize() const; int getStructSize() const;
void computeDeepestStructNesting(); void computeDeepestStructNesting();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment