Skip to content

Commit

Permalink
Remove unused code in PolizElem.hpp .
Browse files Browse the repository at this point in the history
  • Loading branch information
Totktonada committed May 7, 2012
1 parent 7b0b780 commit 9cf6144
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions PolizElem.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,36 +82,6 @@ class PolizConst : public PolizElem {
PolizItem*&, ParserTables&) const;
};

#if 0
template <class T>
class PolizGenericConst : public PolizConst {
public:
PolizGenericConst<T>(int aKey)
: PolizConst(aKey)
{}

virtual int getKey() const = 0;

static T popValue(PolizElemList& stack,
ParserTables& tables)
{
PolizGenericConst<T>* tmp =
dynamic_cast<PolizGenericConst<T>*>
(stack.pop());

if (tmp == 0) {
throw PolizException("Cannot"
" pop value of requested type",
__FILE__, __LINE__);
}

T value = tmp->getValue(tables);
delete tmp;
return value;
}
};
#endif

class PolizInt : public PolizConst {
PolizConst* clone() const
{
Expand Down

0 comments on commit 9cf6144

Please sign in to comment.