From 68b538543d7c1f2424f9bdfdd75b3f302f27eac6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jerry=20Lundstr=C3=B6m?= Date: Thu, 29 Aug 2024 13:40:59 +0200 Subject: [PATCH] Cleanup - Remove code that's disabled and/or commented out --- src/sql.cpp | 11 +---------- src/sql.h | 1 - 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/src/sql.cpp b/src/sql.cpp index 25fe0c5..94ad7ed 100644 --- a/src/sql.cpp +++ b/src/sql.cpp @@ -415,24 +415,15 @@ class Per_sort { } Tlink* p = result.m_fl[0]; it = m_table.m_rows.begin(); - // int cnt = 0; while (p) { - *it++ = p->row; - // cnt++; + *it++ = p->row; Tlink* e = p->get_eq(); while (e) { - // cnt++; *it++ = e->row; e = e->get_eq(); } p = p->m_next; }; - // CID 1436254 Dereference after null check - // Code disabled, it makes no sense - // if(cnt != table_size) - // { - // p++; - // } delete[] links; } diff --git a/src/sql.h b/src/sql.h index 98bb9ff..bcd9a80 100644 --- a/src/sql.h +++ b/src/sql.h @@ -668,7 +668,6 @@ class OP : public Token { } m_name += ")"; } - // m_name+=")"; return m_name.c_str(); } Coltype::Type ret_type() { return m_t; }