Remove some unused functions

This commit is contained in:
Eelco Dolstra 2013-10-08 12:30:23 +00:00
parent 221a2daf34
commit a5e0f64db3

View file

@ -248,21 +248,11 @@ LocalNoInlineNoReturn(void throwTypeError(const char * s))
throw TypeError(s); throw TypeError(s);
} }
LocalNoInlineNoReturn(void throwTypeError(const char * s, const Pos & pos, const string & s2))
{
throw TypeError(format(s) % pos % s2);
}
LocalNoInlineNoReturn(void throwTypeError(const char * s, const string & s1, const string & s2)) LocalNoInlineNoReturn(void throwTypeError(const char * s, const string & s1, const string & s2))
{ {
throw TypeError(format(s) % s1 % s2); throw TypeError(format(s) % s1 % s2);
} }
LocalNoInlineNoReturn(void throwTypeError(const char * s, const Pos & pos))
{
throw TypeError(format(s) % pos);
}
LocalNoInlineNoReturn(void throwAssertionError(const char * s, const Pos & pos)) LocalNoInlineNoReturn(void throwAssertionError(const char * s, const Pos & pos))
{ {
throw AssertionError(format(s) % pos); throw AssertionError(format(s) % pos);
@ -273,11 +263,6 @@ LocalNoInline(void addErrorPrefix(Error & e, const char * s, const string & s2))
e.addPrefix(format(s) % s2); e.addPrefix(format(s) % s2);
} }
LocalNoInline(void addErrorPrefix(Error & e, const char * s, const Pos & pos))
{
e.addPrefix(format(s) % pos);
}
LocalNoInline(void addErrorPrefix(Error & e, const char * s, const string & s2, const Pos & pos)) LocalNoInline(void addErrorPrefix(Error & e, const char * s, const string & s2, const Pos & pos))
{ {
e.addPrefix(format(s) % s2 % pos); e.addPrefix(format(s) % s2 % pos);