Skip to content

Commit a899a43

Browse files
authored
Delete all methods in preprocessor class tStringifyLevelInput (KhronosGroup#4348)
They were not used.
1 parent 50530d0 commit a899a43

1 file changed

Lines changed: 7 additions & 30 deletions

File tree

glslang/MachineIndependent/preprocessor/PpContext.h

Lines changed: 7 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -446,36 +446,13 @@ class TPpContext {
446446
static const int marker = -3;
447447
};
448448

449-
class tStringifyLevelInput : public tInput {
450-
int what;
451-
tStringifyLevelInput(TPpContext* pp) : tInput(pp) { }
452-
public:
453-
static tStringifyLevelInput popMarker(TPpContext* pp)
454-
{
455-
tStringifyLevelInput sl(pp);
456-
sl.what = POP;
457-
return sl;
458-
}
459-
460-
static tStringifyLevelInput pushMarker(TPpContext* pp)
461-
{
462-
tStringifyLevelInput sl(pp);
463-
sl.what = PUSH;
464-
return sl;
465-
}
466-
467-
int scan(TPpToken*) override
468-
{
469-
if (done)
470-
return EndOfInput;
471-
done = true;
472-
473-
return what;
474-
}
475-
virtual int getch() override { assert(0); return EndOfInput; }
476-
virtual void ungetch() override { assert(0); }
477-
static const int PUSH = -4;
478-
static const int POP = -5;
449+
struct tStringifyLevelInput {
450+
// PUSH is a token atom indicating a new stringizing (#) level
451+
// during macro body expansion.
452+
static constexpr int PUSH = -4;
453+
// PUSH is a token atom indicating the end of a stringizing level
454+
// during macro body expansion.
455+
static constexpr int POP = -5;
479456
};
480457

481458
class tZeroInput : public tInput {

0 commit comments

Comments
 (0)