Skip to content

Commit 3cba8ac

Browse files
bnoordhuisFishrock123
authored andcommitted
src: remove obsolete NOLINT comments
Obsoleted by the recent cpplint upgrade. PR-URL: #7462 Reviewed-By: Trevor Norris <trev.norris@gmail.com>
1 parent 4014ecb commit 3cba8ac

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

src/node_buffer.cc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1248,9 +1248,7 @@ void Swap64(const FunctionCallbackInfo<Value>& args) {
12481248
std::swap(ts_obj_data[i], ts_obj_data[i + 7]);
12491249
std::swap(ts_obj_data[i + 1], ts_obj_data[i + 6]);
12501250
std::swap(ts_obj_data[i + 2], ts_obj_data[i + 5]);
1251-
// NOLINT added because current cpplint.py is old and doesn't know that
1252-
// std::swap() now lives in <utility> instead of <algorithm>.
1253-
std::swap(ts_obj_data[i + 3], ts_obj_data[i + 4]); // NOLINT
1251+
std::swap(ts_obj_data[i + 3], ts_obj_data[i + 4]);
12541252
}
12551253
}
12561254

src/stream_base.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ class StreamBase : public StreamResource {
261261
const v8::PropertyCallbackInfo<v8::Value>& args);
262262

263263
template <class Base,
264-
int (StreamBase::*Method)( // NOLINT(whitespace/parens)
264+
int (StreamBase::*Method)(
265265
const v8::FunctionCallbackInfo<v8::Value>& args)>
266266
static void JSMethod(const v8::FunctionCallbackInfo<v8::Value>& args);
267267

src/string_search.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ class StringSearch : private StringSearchBase {
134134
}
135135

136136
private:
137-
typedef size_t (*SearchFunction)( // NOLINT - it's not a cast!
137+
typedef size_t (*SearchFunction)(
138138
StringSearch<Char>*,
139139
Vector<const Char>,
140140
size_t);

0 commit comments

Comments
 (0)