summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2013-02-27 19:42:48 +0100
committerJulien Nabet <serval2412@yahoo.fr>2013-02-27 19:44:06 +0100
commit4bdd78dc3122bdc1eaf85f05fc3cb1cb9afedf7d (patch)
tree3b2120deddba1852ae66009a9d041c1c6ad74f2d /sfx2
parentda698e0b2aacd9a252966f4965422e129a353e75 (diff)
Remove unused parts and simplify
See http://nabble.documentfoundation.org/Cppcheck-quot-bContainsDate-quot-not-read-in-templateremoteview-cxx-sfx2-td4032416.html Change-Id: I2369d728e431d5e802871fc0a173aacc90079798
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/control/templateremoteview.cxx23
1 files changed, 0 insertions, 23 deletions
diff --git a/sfx2/source/control/templateremoteview.cxx b/sfx2/source/control/templateremoteview.cxx
index 8b76094bb038..acf0703c0e39 100644
--- a/sfx2/source/control/templateremoteview.cxx
+++ b/sfx2/source/control/templateremoteview.cxx
@@ -109,7 +109,6 @@ bool TemplateRemoteView::loadRepository (TemplateRepository* pItem, bool bRefres
uno::Reference< XRow > xRow( xResultSet, UNO_QUERY );
uno::Reference< XContentAccess > xContentAccess( xResultSet, UNO_QUERY );
- util::DateTime aDT;
std::vector<TemplateItemProperties> aItems;
sal_uInt16 nIdx = 0;
@@ -120,15 +119,6 @@ bool TemplateRemoteView::loadRepository (TemplateRepository* pItem, bool bRefres
// don't show hidden files or anything besides documents
if ( !bIsHidden || xRow->wasNull() )
{
- aDT = xRow->getTimestamp( ROW_DATE_MOD );
- bool bContainsDate = !xRow->wasNull();
-
- if ( !bContainsDate )
- {
- aDT = xRow->getTimestamp( ROW_DATE_CREATE );
- bContainsDate = !xRow->wasNull();
- }
-
OUString aContentURL = xContentAccess->queryContentIdentifierString();
OUString aTargetURL = xRow->getString( ROW_TARGET_URL );
bool bHasTargetURL = !xRow->wasNull() && !aTargetURL.isEmpty();
@@ -144,19 +134,6 @@ bool TemplateRemoteView::loadRepository (TemplateRepository* pItem, bool bRefres
TEMPLATE_THUMBNAIL_MAX_HEIGHT);
aTemplateItem.aName = xRow->getString( ROW_TITLE );
- if ( bHasTargetURL &&
- INetURLObject( aContentURL ).GetProtocol() == INET_PROT_VND_SUN_STAR_HIER )
- {
- ucbhelper::Content aCnt( aTargetURL, m_xCmdEnv, comphelper::getProcessComponentContext() );
-
- try
- {
- aCnt.getPropertyValue("DateModified") >>= aDT;
- }
- catch (...)
- {}
- }
-
pItem->insertTemplate(aTemplateItem);
aItems.push_back(aTemplateItem);
++nIdx;