[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 4f59988 1/3: Expunge unreachable code
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 4f59988 1/3: Expunge unreachable code |
Date: |
Sun, 7 Aug 2016 12:11:35 +0000 (UTC) |
branch: master
commit 4f59988765abfdd744a7ed9e94cd03cb82bc14e4
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Expunge unreachable code
DatabaseTableAdapter::GetTDBValue() was unreachable. Furthermore, it
used the same name as DatabaseDocument::GetTDBValue(), making the code
unnecessarily difficult to understand.
---
database_view_editor.hpp | 6 ------
1 file changed, 6 deletions(-)
diff --git a/database_view_editor.hpp b/database_view_editor.hpp
index 1e2f6a2..392b242 100644
--- a/database_view_editor.hpp
+++ b/database_view_editor.hpp
@@ -75,7 +75,6 @@ class DatabaseTableAdapter
virtual ~DatabaseTableAdapter();
/// Decorated object accessors
- database_entity* GetTDBValue() const;
void SetTDBValue(database_entity* db_value);
/// Return true if the object data is modified since the last save
@@ -123,11 +122,6 @@ class DatabaseTableAdapter
DECLARE_NO_COPY_CLASS(DatabaseTableAdapter)
};
-inline database_entity* DatabaseTableAdapter::GetTDBValue() const
-{
- return db_value_;
-}
-
inline void DatabaseTableAdapter::SetTDBValue(database_entity* db_value)
{
db_value_ = db_value;