Skip to content

Commit a96e90e

Browse files
committed
Remove obsolete token from source span
1 parent aada71e commit a96e90e

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

src/parser.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ namespace Sass {
187187
after_token.add(it_before_token, it_after_token);
188188

189189
// ToDo: could probably do this incremental on original object (API wants offset?)
190-
pstate = SourceSpan(path, source, lexed, before_token, after_token - before_token);
190+
pstate = SourceSpan(path, source, before_token, after_token - before_token);
191191

192192
// advance internal char iterator
193193
return position = it_after_token;

src/position.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,13 +118,10 @@ namespace Sass {
118118

119119

120120
SourceSpan::SourceSpan(const char* path, const char* src, const size_t file)
121-
: Position(file, 0, 0), path(path), src(src), offset(0, 0), token() { }
121+
: Position(file, 0, 0), path(path), src(src), offset(0, 0) { }
122122

123123
SourceSpan::SourceSpan(const char* path, const char* src, const Position& position, Offset offset)
124-
: Position(position), path(path), src(src), offset(offset), token() { }
125-
126-
SourceSpan::SourceSpan(const char* path, const char* src, const Token& token, const Position& position, Offset offset)
127-
: Position(position), path(path), src(src), offset(offset), token(token) { }
124+
: Position(position), path(path), src(src), offset(offset) { }
128125

129126
Position Position::add(const char* begin, const char* end)
130127
{

src/position.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ namespace Sass {
104104
public: // c-tor
105105
SourceSpan(const char* path, const char* src = 0, const size_t file = sass::string::npos);
106106
SourceSpan(const char* path, const char* src, const Position& position, Offset offset = Offset(0, 0));
107-
SourceSpan(const char* path, const char* src, const Token& token, const Position& position, Offset offset = Offset(0, 0));
108107

109108
public: // down casts
110109
Offset off() { return *this; }
@@ -115,7 +114,6 @@ namespace Sass {
115114
const char* path;
116115
const char* src;
117116
Offset offset;
118-
Token token;
119117

120118
};
121119

0 commit comments

Comments
 (0)