Skip to content

Commit d0f5ec5

Browse files
committed
Remove obsolete code
1 parent 758a23e commit d0f5ec5

2 files changed

Lines changed: 2 additions & 13 deletions

File tree

src/sql/sqlitetypes.cpp

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -64,17 +64,14 @@ void Constraint::removeFromColumnList(const std::string& key)
6464

6565
bool ForeignKeyClause::isSet() const
6666
{
67-
return m_override.size() || m_table.size();
67+
return m_table.size();
6868
}
6969

7070
std::string ForeignKeyClause::toString() const
7171
{
7272
if(!isSet())
7373
return std::string();
7474

75-
if(m_override.size())
76-
return m_override;
77-
7875
std::string result = escapeIdentifier(m_table);
7976

8077
if(m_columns.size())
@@ -86,11 +83,6 @@ std::string ForeignKeyClause::toString() const
8683
return result;
8784
}
8885

89-
void ForeignKeyClause::setFromString(const std::string& fk)
90-
{
91-
m_override = fk;
92-
}
93-
9486
std::string ForeignKeyClause::toSql() const
9587
{
9688
std::string result;

src/sql/sqlitetypes.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,8 @@ class ForeignKeyClause : public Constraint
158158

159159
bool isSet() const;
160160
std::string toString() const;
161-
void setFromString(const std::string& fk);
162161

163-
void setTable(const std::string& table) { m_override.clear(); m_table = table; }
162+
void setTable(const std::string& table) { m_table = table; }
164163
const std::string& table() const { return m_table; }
165164

166165
void setColumns(const StringVector& columns) { m_columns = columns; }
@@ -177,8 +176,6 @@ class ForeignKeyClause : public Constraint
177176
std::string m_table;
178177
StringVector m_columns;
179178
std::string m_constraint;
180-
181-
std::string m_override;
182179
};
183180

184181
class UniqueConstraint : public Constraint

0 commit comments

Comments
 (0)