Skip to content

Commit 68b5385

Browse files
committed
Cleanup
- Remove code that's disabled and/or commented out
1 parent 66e542a commit 68b5385

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

src/sql.cpp

+1-10
Original file line numberDiff line numberDiff line change
@@ -415,24 +415,15 @@ class Per_sort {
415415
}
416416
Tlink* p = result.m_fl[0];
417417
it = m_table.m_rows.begin();
418-
// int cnt = 0;
419418
while (p) {
420-
*it++ = p->row;
421-
// cnt++;
419+
*it++ = p->row;
422420
Tlink* e = p->get_eq();
423421
while (e) {
424-
// cnt++;
425422
*it++ = e->row;
426423
e = e->get_eq();
427424
}
428425
p = p->m_next;
429426
};
430-
// CID 1436254 Dereference after null check
431-
// Code disabled, it makes no sense
432-
// if(cnt != table_size)
433-
// {
434-
// p++;
435-
// }
436427

437428
delete[] links;
438429
}

src/sql.h

-1
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,6 @@ class OP : public Token {
668668
}
669669
m_name += ")";
670670
}
671-
// m_name+=")";
672671
return m_name.c_str();
673672
}
674673
Coltype::Type ret_type() { return m_t; }

0 commit comments

Comments
 (0)