]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiIdListModel.cpp
Whitespace.
[lyx.git] / src / frontends / qt4 / GuiIdListModel.cpp
index 1b17e59a8f2e51c2f5054071b810d61017e15e9d..07b38708faebe7d022cfb813146e7d18277c7ce6 100644 (file)
@@ -16,6 +16,8 @@
 
 #include "GuiIdListModel.h"
 
+#include "support/lassert.h"
+
 using std::vector;
 
 namespace lyx {
@@ -61,7 +63,10 @@ bool GuiIdListModel::setData (QModelIndex const & index,
                dataChanged(index, index);
                return true;
        }
-       return false;
+       // If we assert here, it's because we're trying to set an
+       // unrecognized role.
+       LASSERT(false, return false);
+       return false; // silence the warning
 }
 
 
@@ -133,20 +138,6 @@ int GuiIdListModel::findIDString(std::string const & idString)
        return -1;
 }
 
-
-#if 0
-// The following function is currently unused but is retained here in
-//   case it should at some point be useful.
-QStringList GuiIdListModel::getIDStringList() const
-{
-       QStringList qsl;
-       vector<OurData>::const_iterator it  = userData_.begin();
-       vector<OurData>::const_iterator end = userData_.end();
-       for (; it != end; ++it)
-               qsl.append(it->idString.toString());
-       return qsl;
-}
-#endif
 } // namespace frontend
 } // namespace lyx