mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-02-09 21:28:30 -06:00
Remove obsolete code
This commit is contained in:
@@ -64,7 +64,7 @@ void Constraint::removeFromColumnList(const std::string& key)
|
||||
|
||||
bool ForeignKeyClause::isSet() const
|
||||
{
|
||||
return m_override.size() || m_table.size();
|
||||
return m_table.size();
|
||||
}
|
||||
|
||||
std::string ForeignKeyClause::toString() const
|
||||
@@ -72,9 +72,6 @@ std::string ForeignKeyClause::toString() const
|
||||
if(!isSet())
|
||||
return std::string();
|
||||
|
||||
if(m_override.size())
|
||||
return m_override;
|
||||
|
||||
std::string result = escapeIdentifier(m_table);
|
||||
|
||||
if(m_columns.size())
|
||||
@@ -86,11 +83,6 @@ std::string ForeignKeyClause::toString() const
|
||||
return result;
|
||||
}
|
||||
|
||||
void ForeignKeyClause::setFromString(const std::string& fk)
|
||||
{
|
||||
m_override = fk;
|
||||
}
|
||||
|
||||
std::string ForeignKeyClause::toSql() const
|
||||
{
|
||||
std::string result;
|
||||
|
||||
@@ -158,9 +158,8 @@ public:
|
||||
|
||||
bool isSet() const;
|
||||
std::string toString() const;
|
||||
void setFromString(const std::string& fk);
|
||||
|
||||
void setTable(const std::string& table) { m_override.clear(); m_table = table; }
|
||||
void setTable(const std::string& table) { m_table = table; }
|
||||
const std::string& table() const { return m_table; }
|
||||
|
||||
void setColumns(const StringVector& columns) { m_columns = columns; }
|
||||
@@ -177,8 +176,6 @@ private:
|
||||
std::string m_table;
|
||||
StringVector m_columns;
|
||||
std::string m_constraint;
|
||||
|
||||
std::string m_override;
|
||||
};
|
||||
|
||||
class UniqueConstraint : public Constraint
|
||||
|
||||
Reference in New Issue
Block a user